Commit e32cec6745734db16f58961f151505d3f8d53ff0

Authored by Erdogan Furkan
2 parents 5fdc383e 12097401

Merge branch 'amdadev' of https://gitlab.irap.omp.eu/CDPP/AMDA_IHM into amdadev

Showing 1 changed file with 1 additions and 3 deletions   Show diff stats
php/classes/AmdaNews.php
... ... @@ -7,7 +7,7 @@ class AmdaNews {
7 7  
8 8 public $user, $userdir, $infodir;
9 9  
10   - public function __construct($user) {
  10 + public function __construct($user = "") {
11 11 if ($user) {
12 12 $this->user = $user;
13 13 $this->userdir = USERPATH."/".$user."/";
... ... @@ -19,7 +19,6 @@ class AmdaNews {
19 19 * Add new info message and mark user dir with newInfo file
20 20 */
21 21 public function addInfo($group){
22   -
23 22 // special dir for group news
24 23 if ($group) $this->infodir = BASE_PATH.'help/'.$group.'_INFO/';
25 24 else $this->infodir = BASE_PATH.'help/INFO/';
... ... @@ -56,7 +55,6 @@ class AmdaNews {
56 55 * Concate individual info messages into one to be shown to user
57 56 */
58 57 public function makeInfo($groups){
59   -
60 58 if (file_exists($this->userdir.'lastLogin')) {
61 59  
62 60 $timeStamp = filemtime($this->userdir.'lastLogin');
... ...