Commit cd9d3801 authored by tbrehm's avatar tbrehm
Browse files

Fixed some PHP notices.

parent 18c7b534
......@@ -136,7 +136,7 @@ class plugin {
global $app;
//* execute the functions for the events
if(is_array($_SESSION['s']['plugin_cache'][$event_name])) {
if(@is_array($_SESSION['s']['plugin_cache'][$event_name])) {
foreach($_SESSION['s']['plugin_cache'][$event_name] as $rec) {
$plugin_name = $rec['plugin'];
$function_name = $rec['function'];
......
......@@ -364,7 +364,12 @@ class tform {
$record = $this->decode($record,$tab);
if(is_array($record)) {
foreach($this->formDef['tabs'][$tab]['fields'] as $key => $field) {
$val = $record[$key];
if(isset($record[$key])) {
$val = $record[$key];
} else {
$val = '';
}
// If Datasource is set, get the data from there
if(isset($field['datasource']) && is_array($field['datasource'])) {
......@@ -478,7 +483,11 @@ class tform {
break;
default:
if(isset($record[$key])) {
$new_record[$key] = htmlspecialchars($record[$key]);
} else {
$new_record[$key] = '';
}
}
}
}
......
......@@ -100,14 +100,14 @@ if($_SESSION["s"]["user"]["typ"] == 'admin') {
$this_fullversion = (($this_version[0] < 10) ? '0'.$this_version[0] : $this_version[0]) .
((isset($this_version[1]) && $this_version[1] < 10) ? '0'.$this_version[1] : $this_version[1]) .
((isset($this_version[2]) && $this_version[2] < 10) ? '0'.$this_version[2] : $this_version[2]) .
((isset($this_version[3]) && $this_version[3] < 10) ? (($this_version[3] < 1) ? '00' : '0'.$this_version[3]) : $this_version[3]);
((isset($this_version[3]) && $this_version[3] < 10) ? (($this_version[3] < 1) ? '00' : '0'.$this_version[3]) : @$this_version[3]);
$new_version = explode(".",$v2);
$new_fullversion = (($new_version[0] < 10) ? '0'.$new_version[0] : $new_version[0]) .
((isset($new_version[1]) && $new_version[1] < 10) ? '0'.$new_version[1] : $new_version[1]) .
((isset($new_version[2]) && $new_version[2] < 10) ? '0'.$new_version[2] : $new_version[2]) .
((isset($new_version[3]) && $new_version[3] < 10) ? (($new_version[3] < 1) ? '00' : '0'.$new_version[3]) : $new_version[3]);
((isset($new_version[3]) && $new_version[3] < 10) ? (($new_version[3] < 1) ? '00' : '0'.$new_version[3]) : @$new_version[3]);
if($new_fullversion > $this_fullversion) {
$info[] = array('info_msg' => 'There is a new Version of ISPConfig 3 available!<br>' .
'This Version: ' . $v1 . '<br>' .
......
......@@ -18,8 +18,8 @@ try {
$client_id = 1;
$params = array(
'server_id' => 0,
'ip_address' => '',
'server_id' => 1,
'ip_address' => '*',
'domain' => 'test2.int',
'type' => 'vhost',
'parent_domain_id' => 0,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment