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
This commit is contained in:
parent
8164415b45
commit
1c22b1f626
|
@ -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…
Reference in New Issue