]> git.openstreetmap.org Git - nominatim.git/blobdiff - utils/setup.php
break out of write loop when psql fails
[nominatim.git] / utils / setup.php
index 9e946035c6e4ff8201dd69fa0cf67b19a40d8a27..e256289cd6cd985373b2224fa3fa5afed1b2395a 100755 (executable)
                while(strlen($sScript))
                {
                        $written = fwrite($ahPipes[0], $sScript);
+                       if ($written <= 0) break;
                        $sScript = substr($sScript, $written);
                }
                fclose($ahPipes[0]);