Permalink
Browse files

fixed a bug in autoservice.php: controlling that $data is an array wh…

…en cloning objects
  • Loading branch information...
1 parent 833c46b commit d7a4232e754497705c92c1f04080576f8cf3ddac Marco Pozzato committed Jun 1, 2012
Showing with 6 additions and 4 deletions.
  1. +6 −4 admin/modules/aa/ihtml/auto_service.php
@@ -195,12 +195,14 @@ function addQueryWhere ($qry) {
if(isset($_SESSION[$synTable.'_clone'])){
$data = unserialize($_SESSION[$synTable.'_clone']);
- foreach($data as $k=>$v){
- if(is_array($v)){
- $data[$k] = implode($v, '|'); // in caso di multicheck
+ if(is_array($data)){
+ foreach($data as $k=>$v){
+ if(is_array($v)){
+ $data[$k] = implode($v, '|'); // in caso di multicheck
+ }
}
+ $contenitore->updateValues($data); // fracco i valori in sessione nel contenitore
}
- $contenitore->updateValues($data); // fracco i valori in sessione nel contenitore
}
echo $synHtml->form("action='$PHP_SELF' method='POST' enctype='multipart/form-data' onsubmit='javascript: true || loading();' autocomplete=\"off\"");

0 comments on commit d7a4232

Please sign in to comment.