diff --git a/lib/dao/dao.class.php b/lib/dao/dao.class.php index e4dab72edf..f4152893d7 100755 --- a/lib/dao/dao.class.php +++ b/lib/dao/dao.class.php @@ -890,7 +890,7 @@ class dao * @access public * @return bool */ - public function isError() + public static function isError() { return !empty(dao::$errors); } @@ -902,7 +902,7 @@ class dao * @access public * @return array */ - public function getError($join = false) + public static function getError($join = false) { $errors = dao::$errors; dao::$errors = array(); // Must clear it. @@ -1076,7 +1076,7 @@ class sql * @access public * @return object the sql object. */ - public function factory($table = '') + public static function factory($table = '') { return new sql($table); } @@ -1088,7 +1088,7 @@ class sql * @access public * @return object the sql object. */ - public function select($field = '*') + public static function select($field = '*') { $sqlobj = self::factory(); $sqlobj->sql = "SELECT $field "; @@ -1102,7 +1102,7 @@ class sql * @access public * @return object the sql object. */ - public function update($table) + public static function update($table) { $sqlobj = self::factory(); $sqlobj->sql = "UPDATE $table SET "; @@ -1116,7 +1116,7 @@ class sql * @access public * @return object the sql object. */ - public function insert($table) + public static function insert($table) { $sqlobj = self::factory(); $sqlobj->sql = "INSERT INTO $table SET "; @@ -1130,7 +1130,7 @@ class sql * @access public * @return object the sql object. */ - public function replace($table) + public static function replace($table) { $sqlobj = self::factory(); $sqlobj->sql = "REPLACE $table SET "; @@ -1143,7 +1143,7 @@ class sql * @access public * @return object the sql object. */ - public function delete() + public static function delete() { $sqlobj = self::factory(); $sqlobj->sql = "DELETE "; diff --git a/lib/filter/filter.class.php b/lib/filter/filter.class.php index 1061dcd225..5acfc9839d 100755 --- a/lib/filter/filter.class.php +++ b/lib/filter/filter.class.php @@ -332,7 +332,7 @@ class fixer * @access public * @return object fixer object. */ - public function input($scope) + public static function input($scope) { return new fixer($scope); } diff --git a/lib/pager/pager.class.php b/lib/pager/pager.class.php index 2df0335387..6d207c0fbf 100755 --- a/lib/pager/pager.class.php +++ b/lib/pager/pager.class.php @@ -133,7 +133,7 @@ class pager * @access public * @return object */ - public function init($recTotal = 0, $recPerPage = 20, $pageID = 1) + public static function init($recTotal = 0, $recPerPage = 20, $pageID = 1) { return new pager($recTotal, $recPerPage, $pageID); } diff --git a/module/bug/model.php b/module/bug/model.php index b3ee940ecd..fc0efbb243 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -1241,7 +1241,7 @@ class bugModel extends model * @access public * @return void */ - public function isClickable($object, $action) + public static function isClickable($object, $action) { $action = strtolower($action); diff --git a/module/common/control.php b/module/common/control.php index 5c19ff014f..c865e5aa6b 100644 --- a/module/common/control.php +++ b/module/common/control.php @@ -110,7 +110,7 @@ class common extends control * @access public * @return void */ - public function setMenuVars($menu, $key, $params) + public static function setMenuVars($menu, $key, $params) { if(is_array($params)) { @@ -406,7 +406,7 @@ class common extends control * @access public * @return string */ - public function getSysURL() + public static function getSysURL() { $httpType = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == 'on') ? 'https' : 'http'; $httpHost = $_SERVER['HTTP_HOST']; diff --git a/module/product/model.php b/module/product/model.php index b66c919f6c..4684fd2657 100644 --- a/module/product/model.php +++ b/module/product/model.php @@ -605,7 +605,7 @@ class productModel extends model * @access public * @return void */ - public function isClickable($product, $action) + public static function isClickable($product, $action) { $action = strtolower($action); diff --git a/module/project/model.php b/module/project/model.php index 663e99a143..e3c4937343 100644 --- a/module/project/model.php +++ b/module/project/model.php @@ -254,6 +254,7 @@ class projectModel extends model /* Add the creator to team. */ if($copyProjectID == '' or !$creatorExists) { + $member = new stdclass(); $member->project = $projectID; $member->account = $this->app->user->account; $member->role = $this->lang->user->roleList[$this->app->user->role]; diff --git a/module/story/model.php b/module/story/model.php index 7ba4f7360a..414cd4628c 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -1480,7 +1480,7 @@ class storyModel extends model * @access public * @return void */ - public function isClickable($story, $action) + public static function isClickable($story, $action) { $action = strtolower($action); diff --git a/module/task/model.php b/module/task/model.php index 0143e4aca6..f61cc1a59b 100644 --- a/module/task/model.php +++ b/module/task/model.php @@ -1315,7 +1315,7 @@ class taskModel extends model * @access public * @return bool */ - public function isClickable($task, $action) + public static function isClickable($task, $action) { $action = strtolower($action);