From: Jakob Sack Date: Fri, 8 Apr 2011 15:36:12 +0000 (+0200) Subject: Fixed some small bugs X-Git-Tag: v3.0~267^2~558^2~162 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7c8ae42c6f39b38e2910780944910b5cf9d360c1;p=nextcloud-server.git Fixed some small bugs --- diff --git a/lib/appconfig.php b/lib/appconfig.php index 3c37a9d77d5..81e5717f647 100644 --- a/lib/appconfig.php +++ b/lib/appconfig.php @@ -51,7 +51,7 @@ class OC_APPCONFIG{ $result = $query->execute(); $apps = array(); - while( $result->fetchRow()){ + while( $row = $result->fetchRow()){ $apps[] = $row["appid"]; } @@ -72,7 +72,7 @@ class OC_APPCONFIG{ $result = $query->execute( $app ); $keys = array(); - while( $result->fetchRow()){ + while( $row = $result->fetchRow()){ $keys[] = $row["key"]; } diff --git a/lib/preferences.php b/lib/preferences.php index 0bc4092de4b..7b510e5b7de 100644 --- a/lib/preferences.php +++ b/lib/preferences.php @@ -51,7 +51,7 @@ class OC_PREFERENCES{ $result = $query->execute(); $users = array(); - while( $result->fetchRow()){ + while( $row = $result->fetchRow()){ $users[] = $row["userid"]; } @@ -72,7 +72,7 @@ class OC_PREFERENCES{ $result = $query->execute( $user ); $apps = array(); - while( $result->fetchRow()){ + while( $row = $result->fetchRow()){ $apps[] = $row["appid"]; } @@ -94,7 +94,7 @@ class OC_PREFERENCES{ $result = $query->execute( $user, $app ); $keys = array(); - while( $result->fetchRow()){ + while( $row = $result->fetchRow()){ $keys[] = $row["key"]; }