|
From: Markus P. <mar...@us...> - 2005-04-06 21:48:33
|
Update of /cvsroot/mxbb/core/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15207 Modified Files: admin_mx_block.php Log Message: Fixed auth_delete being inserted/updated as emtpy string, now using intval. Gave problems with PostgreSQL. Index: admin_mx_block.php =================================================================== RCS file: /cvsroot/mxbb/core/admin/admin_mx_block.php,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** admin_mx_block.php 17 Mar 2005 11:30:34 -0000 1.23 --- admin_mx_block.php 6 Apr 2005 21:48:21 -0000 1.24 *************** *** 248,252 **** auth_view = '" . $HTTP_POST_VARS['auth_view'] . "' , auth_edit = '" . $HTTP_POST_VARS['auth_edit'] . "' , ! auth_delete = '" . $HTTP_POST_VARS['auth_delete'] . "', show_block = '" . $HTTP_POST_VARS['show_block'] . "', show_title = '" . $HTTP_POST_VARS['show_block'] . "', --- 248,252 ---- auth_view = '" . $HTTP_POST_VARS['auth_view'] . "' , auth_edit = '" . $HTTP_POST_VARS['auth_edit'] . "' , ! auth_delete = '" . intval($HTTP_POST_VARS['auth_delete']) . "', show_block = '" . $HTTP_POST_VARS['show_block'] . "', show_title = '" . $HTTP_POST_VARS['show_block'] . "', *************** *** 397,401 **** '" . $HTTP_POST_VARS['auth_view'] . "' , '" . $HTTP_POST_VARS['auth_edit'] . "' , ! '" . $HTTP_POST_VARS['auth_delete'] . "' )"; if ( !$result = $db->sql_query( $sql ) ) --- 397,401 ---- '" . $HTTP_POST_VARS['auth_view'] . "' , '" . $HTTP_POST_VARS['auth_edit'] . "' , ! '" . intval($HTTP_POST_VARS['auth_delete']) . "' )"; if ( !$result = $db->sql_query( $sql ) ) |