]> git.openstreetmap.org Git - nominatim.git/blobdiff - utils/update.php
bugfix nominatim
[nominatim.git] / utils / update.php
index 7fc864c57f655e09c0539e20bb7d3a80a307d56b..dbf158e5d67f1b2a0a5e4e12a7fd749ce0275a9a 100755 (executable)
                                $iFileID = $oDB->getOne('select nextval(\'file\')');
                                if (PEAR::isError($iFileID))
                                {
                                $iFileID = $oDB->getOne('select nextval(\'file\')');
                                if (PEAR::isError($iFileID))
                                {
-                                       echo $oDB->getMessage()."\n";
+                                       echo $iFileID->getMessage()."\n";
                                        exit;
                                } 
                                $sFileDir = CONST_BasePath.'/export/diff/';
                                        exit;
                                } 
                                $sFileDir = CONST_BasePath.'/export/diff/';