projects
/
racktables
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e74a50
)
r4224 bugfix: 'Invalid argument supplied for foreach' PHP error was appearing when...
author
Alexey Andriyanov
<alan@al-an.info>
Mon, 14 Feb 2011 16:50:24 +0000
(16:50 +0000)
committer
Alexey Andriyanov
<alan@al-an.info>
Mon, 14 Feb 2011 16:50:24 +0000
(16:50 +0000)
tableHandler: checks for existence of setup subarrays added
wwwroot/inc/ophandlers.php
patch
|
blob
|
blame
|
history
diff --git
a/wwwroot/inc/ophandlers.php
b/wwwroot/inc/ophandlers.php
index 450e217a9196aaf42fba8d150090706ec0011fcc..0bd3f860ef484d98edd6ea4d3c1e295474885319 100644
(file)
--- a/
wwwroot/inc/ophandlers.php
+++ b/
wwwroot/inc/ophandlers.php
@@
-2795,6
+2795,9
@@
function tableHandler()
global $sic;
$columns = array();
foreach (array ('arglist', 'set_arglist', 'where_arglist') as $listname)
+ {
+ if (! is_array ($opspec[$listname]))
+ continue;
foreach ($opspec[$listname] as $argspec)
{
genericAssertion ($argspec['url_argname'], $argspec['assertion']);
@@
-2821,6
+2824,7
@@
function tableHandler()
}
$columns[$listname][$table_colname] = $arg_value;
}
+ }
switch ($opspec['action'])
{
case 'INSERT':