Jelajahi Sumber

bug break in for()

visuddhinanda 5 tahun lalu
induk
melakukan
0940351b37
2 mengubah file dengan 5 tambahan dan 5 penghapusan
  1. 1 1
      app/install/db_create.php
  2. 4 4
      app/pcdl/change.php

+ 1 - 1
app/install/db_create.php

@@ -70,7 +70,7 @@ switch($res){
     if (!$stmt || ($stmt && $stmt->errorCode() != 0)) {
         $error = PDO_ErrorInfo();
         print_r($error[2]);
-        break;
+        exit;
     }
 
 $query="CREATE INDEX 'search' ON \"data\" (\"paragraph\",\"language\",\"author\", \"editor\", \"revision\", \"edition\", \"subver\" , \"time\" )";

+ 4 - 4
app/pcdl/change.php

@@ -256,7 +256,7 @@ $i=$from;
     if (!$stmt || ($stmt && $stmt->errorCode() != 0)) {
         $error = PDO_ErrorInfo();
         print_r($error[2]);
-        break;
+        exit;
     }
 	
 	echo "create $i ok<br>";
@@ -268,7 +268,7 @@ $i=$from;
     if (!$stmt || ($stmt && $stmt->errorCode() != 0)) {
         $error = PDO_ErrorInfo();
         print_r($error[2]);
-        break;
+        exit;
     }
 	
 
@@ -279,7 +279,7 @@ $i=$from;
     if (!$stmt || ($stmt && $stmt->errorCode() != 0)) {
         $error = PDO_ErrorInfo();
         print_r($error[2]);
-        break;
+        exit;
     }
 	
 	$query="UPDATE data SET album = '1' WHERE 1 ";
@@ -287,7 +287,7 @@ $i=$from;
     if (!$stmt || ($stmt && $stmt->errorCode() != 0)) {
         $error = PDO_ErrorInfo();
         print_r($error[2]);
-        break;
+        exit;
     }
 }
 if($from==$to){