@@ 846-849 (lines=4) @@ | ||
843 | ||
844 | $one = $result->fetchOne(); |
|
845 | ||
846 | if (!$one) { |
|
847 | \OCP\Util::writeLog('contacts', __METHOD__.', Not found, uri: '. $uri, \OCP\Util::DEBUG); |
|
848 | return null; |
|
849 | } |
|
850 | ||
851 | return $one; |
|
852 | } |
@@ 601-607 (lines=7) @@ | ||
598 | if (count($property) === 0) { |
|
599 | $property = $this->createProperty($name); |
|
600 | $this->add($property); |
|
601 | } elseif (count($property) > 1) { |
|
602 | \OCP\Util::writeLog('contacts', |
|
603 | __METHOD__.' more than one property for ' . $name, |
|
604 | \OCP\Util::ERROR |
|
605 | ); |
|
606 | return false; |
|
607 | } else { |
|
608 | // select returns an array... |
|
609 | $property = array_shift($property); |
|
610 | } |