Thank you very match!
Fix this patch.
--- modules/eguide/admin/index.php 05 7月 2008 15:14:30 +0900 1.33
+++ modules/eguide/admin/index.php 16 8月 2008 11:03:41 +0900
@@ -92,6 +92,28 @@
}
redirect_header("?op=category", 1, _AM_DBUPDATED);
exit;
+case 'resvCtrl':
+ $rv = isset($_POST['rv'])?$_POST['rv']:array();
+ $ck = isset($_POST['ck'])?$_POST['ck']:array();
+ $off = $on = "";
+ foreach (array_keys($rv) as $k) {
+ if (isset($ck[$k])) {
+ if ($on!="") $on .= " OR ";
+ $on .= "eid=".intval($k);
+ } else {
+ if ($off!="") $off .= " OR ";
+ $off .= "eid=".intval($k);
+ }
+ }
+ if ($on != "") {
+ $result = $xoopsDB->query("UPDATE ".OPTBL." SET reservation=1 WHERE $on");
+ }
+ if ($off != "") {
+ $result = $xoopsDB->query("UPDATE ".OPTBL." SET reservation=0 WHERE $off");
+ }
+ redirect_header("?op=events",1,_AM_DBUPDATED);
+ exit;
+
}
xoops_cp_header();
@@ -262,28 +284,6 @@
import_category();
break;
-case 'resvCtrl':
- $rv = isset($_POST['rv'])?$_POST['rv']:array();
- $ck = isset($_POST['ck'])?$_POST['ck']:array();
- $off = $on = "";
- foreach (array_keys($rv) as $k) {
- if (isset($ck[$k])) {
- if ($on!="") $on .= " OR ";
- $on .= "eid=".intval($k);
- } else {
- if ($off!="") $off .= " OR ";
- $off .= "eid=".intval($k);
- }
- }
- if ($on != "") {
- $result = $xoopsDB->query("UPDATE ".OPTBL." SET reservation=1 WHERE $on");
- }
- if ($off != "") {
- $result = $xoopsDB->query("UPDATE ".OPTBL." SET reservation=0 WHERE $off");
- }
- redirect_header("?op=events",1,_AM_DBUPDATED);
- exit;
-
case 'summary':
echo "<h4>"._AM_SUMMARY."</h4>\n";
$now = time();