Don't cherry-pick: reverted unrelated changes (dbm::is_result())

Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2016-12-20 16:21:59 +01:00
parent d72673b162
commit 361a55155c
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ class Config {
dbesc($family),
dbesc($key)
);
if (dbm::is_result($ret)) {
if (count($ret)) {
// manage array value
$val = (preg_match("|^a:[0-9]+:{.*}$|s", $ret[0]['v'])?unserialize( $ret[0]['v']):$ret[0]['v']);
$a->config[$family][$key] = $val;

View File

@ -92,7 +92,7 @@ class PConfig {
dbesc($key)
);
if (dbm::is_result($ret)) {
if (count($ret)) {
$val = (preg_match("|^a:[0-9]+:{.*}$|s", $ret[0]['v'])?unserialize( $ret[0]['v']):$ret[0]['v']);
$a->config[$uid][$family][$key] = $val;