diff --git a/php/classes/AmdaNews.php b/php/classes/AmdaNews.php index 44c33a7..a5cef43 100644 --- a/php/classes/AmdaNews.php +++ b/php/classes/AmdaNews.php @@ -7,7 +7,7 @@ class AmdaNews { public $user, $userdir, $infodir; - public function __construct($user) { + public function __construct($user = "") { if ($user) { $this->user = $user; $this->userdir = USERPATH."/".$user."/"; @@ -19,7 +19,6 @@ class AmdaNews { * Add new info message and mark user dir with newInfo file */ public function addInfo($group){ - // special dir for group news if ($group) $this->infodir = BASE_PATH.'help/'.$group.'_INFO/'; else $this->infodir = BASE_PATH.'help/INFO/'; @@ -56,7 +55,6 @@ class AmdaNews { * Concate individual info messages into one to be shown to user */ public function makeInfo($groups){ - if (file_exists($this->userdir.'lastLogin')) { $timeStamp = filemtime($this->userdir.'lastLogin'); -- libgit2 0.21.2