1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 13:47:31 +02:00

solved mysql 5 issue (missing default value in strict SQL mode brings an error)

This commit is contained in:
secretr
2008-08-14 11:23:10 +00:00
parent bf29a3eec9
commit d1bdf04727

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_admin/menus.php,v $ | $Source: /cvs_backup/e107_0.8/e107_admin/menus.php,v $
| $Revision: 1.7 $ | $Revision: 1.8 $
| $Date: 2008-06-24 20:53:07 $ | $Date: 2008-08-14 11:23:10 $
| $Author: e107steved $ | $Author: secretr $
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
require_once("../class2.php"); require_once("../class2.php");
@@ -134,8 +134,8 @@ if($_POST['menuActivate'])
{ {
$qry = " $qry = "
INSERT into #menus INSERT into #menus
(`menu_name`, `menu_location`, `menu_order`, `menu_path`) (`menu_name`, `menu_location`, `menu_order`, `menu_pages`, `menu_path`)
VALUES ('{$row['menu_name']}', {$location}, {$menu_count}, '{$row['menu_path']}') VALUES ('{$row['menu_name']}', {$location}, {$menu_count}, '', '{$row['menu_path']}')
"; ";
$sql->db_Select_gen($qry); $sql->db_Select_gen($qry);
$menu_count++; $menu_count++;