Module: appdb Branch: master Commit: 7c4f0af9008d6e6fefaa1d19da9deb5ce9c546a9 URL: http://source.winehq.org/git/appdb.git/?a=commit;h=7c4f0af9008d6e6fefaa1d19d...
Author: Alexander Nicolaysen Sørnes alexsornes@gmail.com Date: Sun Jan 12 15:36:27 2014 +0100
application: Fix invocations of non-static function
---
include/application.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/include/application.php b/include/application.php index 106fa19..32fbf51 100644 --- a/include/application.php +++ b/include/application.php @@ -1054,7 +1054,8 @@ class Application { AND appFamily.state = '?'$sWhereFilter";
- if($sState != 'accepted' && !application::canEdit()) + $oApp = new Application(); + if($sState != 'accepted' && !$oApp->canEdit()) { /* Without global edit rights a user can only view his rejected apps */ if($sState != 'rejected') @@ -1288,7 +1289,8 @@ class Application { $sWhereFilter .= ' AND ' . $oCategory->getSqlQueryPart(); }
- if($sState != 'accepted' && !application::canEdit()) + $oApp = new Application(); + if($sState != 'accepted' && !$oApp->canEdit()) { /* Without edit rights users can only resubmit their rejected entries */ if($sState != 'rejected')