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
remotes/origin/fix-10825
derkostka 12 years ago committed by Morris Jobke
parent 8164415b45
commit 1c22b1f626
  1. 8
      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(),

Loading…
Cancel
Save