diff msite.inc.php @ 72:63a6caf59e5c

Fix creation of boolean settings, and add '%b' formatter into stPrepareSQL().
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 17 Oct 2013 15:01:20 +0300
parents d74fb8cf0062
children 3da47d3e6a3c
line wrap: on
line diff
--- a/msite.inc.php	Fri Oct 11 09:33:16 2013 +0300
+++ b/msite.inc.php	Thu Oct 17 15:01:20 2013 +0300
@@ -268,6 +268,9 @@
     case "s":
       return $db->quote($value);
 
+    case "b":
+      return intval($value) ? 1 : 0;
+
     case "D":
       return intval(stGetRequestItem($value));