| @@ 1725-1729 (lines=5) @@ | ||
| 1722 | $root = strlen($root); |
|
| 1723 | $query = \OC_DB::prepare('SELECT '.$select.' FROM `*PREFIX*share` '.$where, $queryLimit); |
|
| 1724 | $result = $query->execute($queryArgs); |
|
| 1725 | if (\OC_DB::isError($result)) { |
|
| 1726 | \OCP\Util::writeLog('OCP\Share', |
|
| 1727 | \OC_DB::getErrorMessage() . ', select=' . $select . ' where=', |
|
| 1728 | \OCP\Util::ERROR); |
|
| 1729 | } |
|
| 1730 | $items = array(); |
|
| 1731 | $targets = array(); |
|
| 1732 | $switchedItems = array(); |
|
| @@ 235-238 (lines=4) @@ | ||
| 232 | } |
|
| 233 | $entries[$objId][] = $row['category']; |
|
| 234 | } |
|
| 235 | if (\OCP\DB::isError($result)) { |
|
| 236 | \OCP\Util::writeLog('core', __METHOD__. 'DB error: ' . \OCP\DB::getErrorMessage(), \OCP\Util::ERROR); |
|
| 237 | return false; |
|
| 238 | } |
|
| 239 | } |
|
| 240 | } catch(\Exception $e) { |
|
| 241 | \OCP\Util::writeLog('core', __METHOD__.', exception: '.$e->getMessage(), |
|
| @@ 286-289 (lines=4) @@ | ||
| 283 | try { |
|
| 284 | $stmt = \OCP\DB::prepare($sql); |
|
| 285 | $result = $stmt->execute(array($tagId)); |
|
| 286 | if (\OCP\DB::isError($result)) { |
|
| 287 | \OCP\Util::writeLog('core', __METHOD__. 'DB error: ' . \OCP\DB::getErrorMessage(), \OCP\Util::ERROR); |
|
| 288 | return false; |
|
| 289 | } |
|
| 290 | } catch(\Exception $e) { |
|
| 291 | \OCP\Util::writeLog('core', __METHOD__.', exception: '.$e->getMessage(), |
|
| 292 | \OCP\Util::ERROR); |
|
| @@ 570-573 (lines=4) @@ | ||
| 567 | $updates[] = $this->type; |
|
| 568 | $stmt = \OCP\DB::prepare($query); |
|
| 569 | $result = $stmt->execute($updates); |
|
| 570 | if (\OCP\DB::isError($result)) { |
|
| 571 | \OCP\Util::writeLog('core', __METHOD__. 'DB error: ' . \OCP\DB::getErrorMessage(), \OCP\Util::ERROR); |
|
| 572 | return false; |
|
| 573 | } |
|
| 574 | } catch(\Exception $e) { |
|
| 575 | \OCP\Util::writeLog('core', __METHOD__.', exception: ' . $e->getMessage(), |
|
| 576 | \OCP\Util::ERROR); |
|
| @@ 727-732 (lines=6) @@ | ||
| 724 | . 'WHERE `categoryid` = ?'; |
|
| 725 | $stmt = \OCP\DB::prepare($sql); |
|
| 726 | $result = $stmt->execute(array($id)); |
|
| 727 | if (\OCP\DB::isError($result)) { |
|
| 728 | \OCP\Util::writeLog('core', |
|
| 729 | __METHOD__. 'DB error: ' . \OCP\DB::getErrorMessage(), |
|
| 730 | \OCP\Util::ERROR); |
|
| 731 | return false; |
|
| 732 | } |
|
| 733 | } catch(\Exception $e) { |
|
| 734 | \OCP\Util::writeLog('core', __METHOD__.', exception: '.$e->getMessage(), |
|
| 735 | \OCP\Util::ERROR); |
|