]> git.mjollnir.org Git - s9y.git/commitdiff
PostgreSQL integer bug
authorgarvinhicking <garvinhicking>
Sat, 9 Jul 2005 09:48:37 +0000 (09:48 +0000)
committergarvinhicking <garvinhicking>
Sat, 9 Jul 2005 09:48:37 +0000 (09:48 +0000)
include/plugin_api.inc.php
serendipity_config.inc.php

index 6b1b31f8a62dc002a7535584362177799d353474..b03821c42241df9d47aa79426cc82a24e852ef0b 100644 (file)
@@ -480,6 +480,10 @@ class serendipity_plugin_api {
             $data['requirements'] = serialize($data['requirements']);
         }
 
+        if (!isset($data['stackable']) || empty($data['stackable'])) {
+            $data['stackable'] = '0';
+        }
+
         serendipity_db_insert('pluginlist', $data);
 
         serendipity_db_query("DELETE FROM {$serendipity['dbPrefix']}plugincategories WHERE class_name = '" . serendipity_db_escape_string($data['class_name']) . "'");
index d2caa6f3145dc9891d3de29135db82751bfaee44..4e22a8325c5322f2cae0dfb905d81971320034e9 100644 (file)
@@ -115,7 +115,6 @@ include($serendipity['serendipityPath'] . 'include/lang.inc.php');
 @define('VIEWMODE_THREADED', 'threaded');
 @define('VIEWMODE_LINEAR', 'linear');
 
-
 /*
  *   Kill the script if we are not installed, and not inside the installer
  */
@@ -197,7 +196,6 @@ serendipity_permalinkPatterns();
 /*
  *   Load main language file again, because now we have the preferred language
  */
-
 include(S9Y_INCLUDE_PATH . 'include/lang.inc.php');
 
 /*