diff options
author | derkostka <sebastian.kostka@gmail.com> | 2014-12-19 12:09:46 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-12-19 19:44:43 +0100 |
commit | 1c22b1f62603f4dd817a7326343cc843584a77d9 (patch) | |
tree | 61ac3c20f231348de4cd21ce9050ced3c7803398 | |
parent | 8164415b45386cb87e05e6e50cf4b8f3128b2e69 (diff) | |
download | nextcloud-server-1c22b1f62603f4dd817a7326343cc843584a77d9.tar.gz nextcloud-server-1c22b1f62603f4dd817a7326343cc843584a77d9.zip |
Fix Undefined variable: result at tags.php#231
Fix app":"PHP","message":"Undefined variable: result at \/var\/www\/owncloud\/lib\/private\/tags.php#231" by moving the function call into the respective loop
Adjust indentation
Do it right - indentation
sorry, this is my first one
-rw-r--r-- | lib/private/tags.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/tags.php b/lib/private/tags.php index e00c1b90ca9..9ff433b6984 100644 --- a/lib/private/tags.php +++ b/lib/private/tags.php @@ -227,10 +227,10 @@ class Tags implements \OCP\ITags { } $entry = $entries[$objId][] = $row['category']; } - } - if (\OCP\DB::isError($result)) { - \OCP\Util::writeLog('core', __METHOD__. 'DB error: ' . \OCP\DB::getErrorMessage($result), \OCP\Util::ERROR); - return false; + if (\OCP\DB::isError($result)) { + \OCP\Util::writeLog('core', __METHOD__. 'DB error: ' . \OCP\DB::getErrorMessage($result), \OCP\Util::ERROR); + return false; + } } } catch(\Exception $e) { \OCP\Util::writeLog('core', __METHOD__.', exception: '.$e->getMessage(), |