Alexander Nicolaysen =?UTF-8?Q?S=C3=B8rnes=20?=: application: Fix invocations of non-static function
Alexander Nicolaysen Sørnes
asornes at winehq.org
Sun Jan 12 08:57:19 CST 2014
Module: appdb
Branch: master
Commit: 7c4f0af9008d6e6fefaa1d19da9deb5ce9c546a9
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=7c4f0af9008d6e6fefaa1d19da9deb5ce9c546a9
Author: Alexander Nicolaysen Sørnes <alexsornes at 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')
More information about the wine-cvs
mailing list