Do not swallow PEAR error.

This commit is contained in:
mfn 2012-04-26 13:30:49 +02:00
parent 9b01ddd641
commit fd3fcea539

View File

@ -124,7 +124,10 @@
$oDB =& getDB();
$x = $oDB->getRow('select * from place limit 1');
if (!$x || PEAR::isError($x)) fail('No Data');
if (PEAR::isError($x)) {
fail($x->getMessage());
}
if (!$x) fail('No Data');
}
if ($aCMDResult['create-functions'] || $aCMDResult['all'])