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"]; }