Project

General

Profile

« Previous | Next » 

Revision 57965588

Added by Colin Smith about 20 years ago

Initialize the $evaled array if it doesn't exist.

View differences:

etc/inc/pkg-utils.inc
217 217
        $pkg_config = parse_xml_config_pkg("/usr/local/pkg/" . $package['configurationfile'], "packagegui");
218 218
		if(isset($pkg_config['nosync'])) continue;                                                          
219 219
		if($pkg['custom_php_global_functions'] <> "")            
220
			eval($pkg['custom_php_global_functions']);
221
		if($pkg_config['custom_php_command_before_form'] <> "")
222
	   		eval($pkg_config['custom_php_command_before_form']);
220
	        eval($pkg['custom_php_global_functions']);
221
	    if($pkg_config['custom_php_command_before_form'] <> "")
222
	        eval($pkg_config['custom_php_command_before_form']);
223 223
	    if($pkg_config['custom_php_resync_config_command'] <> "")
224 224
	        eval($pkg_config['custom_php_resync_config_command']);
225 225
	    if($sync_depends == true) {
......
238 238
		                    eval($item_config['custom_php_resync_config_command']);
239 239
		                }
240 240
		                if($show_message == true) print " " . $item_config['name'];
241
					}
242
				}
243
			}
244
		}
245
	}
246
	return;
241
                  }
242
              }
243
          }
244
      }
245
    }
247 246
}
248 247

  
249 248
/*
......
453 452

  
454 453
function eval_once($toeval) {
455 454
	global $evaled;
455
	if(!$evaled) $evaled = array();
456 456
	$evalmd5 = md5($toeval);
457 457
	if(!in_array($evalmd5, $evaled)) {
458 458
		eval($toeval);

Also available in: Unified diff