diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-04-01 17:31:44 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-04-01 17:32:13 +0200 |
commit | 39e8981bc2ef098a020476a9d94a4b0cc4d9e1c9 (patch) | |
tree | 7a726da134c43fea128463b6b5ef3fa614c8fc3c /lib | |
parent | b758725bf7fad960e971adfeb826596e02673244 (diff) | |
download | nextcloud-server-39e8981bc2ef098a020476a9d94a4b0cc4d9e1c9.tar.gz nextcloud-server-39e8981bc2ef098a020476a9d94a4b0cc4d9e1c9.zip |
oc_db is not pdo
also pgsql does not like double quotes
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/app.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/app.php b/lib/app.php index 6c882963a02..625ef889670 100755 --- a/lib/app.php +++ b/lib/app.php @@ -103,9 +103,9 @@ class OC_App{ */ public static function getEnabledApps(){ $apps=array(); - $query = OC_DB::prepare( 'SELECT appid FROM *PREFIX*appconfig WHERE configkey = "enabled" AND configvalue="yes"' ); - $query->execute(); - while($row=$query->fetchRow()){ + $query = OC_DB::prepare( 'SELECT appid FROM *PREFIX*appconfig WHERE configkey = \'enabled\' AND configvalue=\'yes\'' ); + $result=$query->execute(); + while($row=$result->fetchRow()){ $apps[]=$row['appid']; } return $apps; @@ -452,7 +452,7 @@ class OC_App{ */ public static function getAppVersions(){ $versions=array(); - $query = OC_DB::prepare( 'SELECT appid, configvalue FROM *PREFIX*appconfig WHERE configkey = "installed_version"' ); + $query = OC_DB::prepare( 'SELECT appid, configvalue FROM *PREFIX*appconfig WHERE configkey = \'installed_version\'' ); $result = $query->execute(); while($row = $result->fetchRow()){ $versions[$row['appid']]=$row['configvalue']; |