diff msitegen.inc.php @ 1104:0a2117349f46

s/true/TRUE/g; s/false/FALSE/g;
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 14 May 2019 14:45:36 +0300
parents 1fe7df7c77fb
children 0b0094db56da c7093ad17858
line wrap: on
line diff
--- a/msitegen.inc.php	Tue May 14 14:12:42 2019 +0300
+++ b/msitegen.inc.php	Tue May 14 14:45:36 2019 +0300
@@ -112,7 +112,7 @@
   switch ($item["vtype"])
   {
     case VT_INT:  return intval($item["vint"]);
-    case VT_BOOL: return intval($item["vint"]) ? true : false;
+    case VT_BOOL: return intval($item["vint"]) ? TRUE : FALSE;
     case VT_STR:  return $item["vstr"];
     case VT_TEXT: return $item["vtext"];
   }
@@ -575,7 +575,7 @@
     return FALSE;
   }
   $db = stConnectSQLDBSpec(stGetSetting("sqlDB"));
-  return ($db !== false);
+  return ($db !== FALSE);
 }
 
 
@@ -658,13 +658,13 @@
   switch ($dbh->getAttribute(PDO::ATTR_DRIVER_NAME))
   {
     case "pgsql":
-      if (($res = stDBFetchSQLColumn($dbh, $sql." RETURNING id")) !== false)
+      if (($res = stDBFetchSQLColumn($dbh, $sql." RETURNING id")) !== FALSE)
         return $res;
       else
         return FALSE;
 
     default:
-      if (stDBExecSQL($dbh, $sql) !== false)
+      if (stDBExecSQL($dbh, $sql) !== FALSE)
         return $dbh->lastInsertId();
       else
         return FALSE;
@@ -969,7 +969,7 @@
     echo "// No CSRF?\n";
 ?>
   var req = jsCreateXMLRequest();
-  req.open("POST", "<?php echo $backend ?>", true);
+  req.open("POST", "<?php echo $backend ?>", TRUE);
   req.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
   req.setRequestHeader("Content-length", params.length);
   req.setRequestHeader("Connection", "close");