|
@@ 434-436 (lines=3) @@
|
| 431 |
|
public static function getShareByToken($token, $checkPasswordProtection = true) { |
| 432 |
|
$query = \OC_DB::prepare('SELECT * FROM `*PREFIX*share` WHERE `token` = ?', 1); |
| 433 |
|
$result = $query->execute(array($token)); |
| 434 |
|
if (\OC_DB::isError($result)) { |
| 435 |
|
\OC_Log::write('OCP\Share', \OC_DB::getErrorMessage($result) . ', token=' . $token, \OC_Log::ERROR); |
| 436 |
|
} |
| 437 |
|
$row = $result->fetchRow(); |
| 438 |
|
if ($row === false) { |
| 439 |
|
return false; |
|
@@ 1590-1594 (lines=5) @@
|
| 1587 |
|
$root = strlen($root); |
| 1588 |
|
$query = \OC_DB::prepare('SELECT '.$select.' FROM `*PREFIX*share` '.$where, $queryLimit); |
| 1589 |
|
$result = $query->execute($queryArgs); |
| 1590 |
|
if (\OC_DB::isError($result)) { |
| 1591 |
|
\OC_Log::write('OCP\Share', |
| 1592 |
|
\OC_DB::getErrorMessage($result) . ', select=' . $select . ' where=', |
| 1593 |
|
\OC_Log::ERROR); |
| 1594 |
|
} |
| 1595 |
|
$items = array(); |
| 1596 |
|
$targets = array(); |
| 1597 |
|
$switchedItems = array(); |