]> git.openstreetmap.org Git - nominatim.git/blobdiff - utils/setup.php
updated wikipedia article code to allow for mutliple languages and remove code duplic...
[nominatim.git] / utils / setup.php
index b9ee9a8996f19fb8cf5374b6b99c3b2057f5df98..29dd86ac3469ec401b098b25bc953a4b20ff73a2 100755 (executable)
 
                $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'])