1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 14:46:56 +02:00

PHP notice removal.

This commit is contained in:
Cameron
2016-02-16 10:42:13 -08:00
parent 7bc78d6971
commit 67358e6f9a
2 changed files with 5 additions and 5 deletions

View File

@@ -3790,7 +3790,7 @@ class e_admin_controller_ui extends e_admin_controller
// filter for WHERE and FROM clauses // filter for WHERE and FROM clauses
$searchable_types = array('text', 'textarea', 'bbarea', 'url', 'ip', 'tags', 'email', 'int', 'integer', 'str', 'string', 'number'); //method? 'user', $searchable_types = array('text', 'textarea', 'bbarea', 'url', 'ip', 'tags', 'email', 'int', 'integer', 'str', 'string', 'number'); //method? 'user',
if($var['type'] == 'method' && ($var['data'] == 'string' || $var['data'] == 'str')) if($var['type'] == 'method' && !empty($var['data']) && ($var['data'] == 'string' || $var['data'] == 'str'))
{ {
$searchable_types[] = 'method'; $searchable_types[] = 'method';
} }
@@ -5508,7 +5508,7 @@ class e_admin_ui extends e_admin_controller_ui
continue; continue;
} }
if($att['type'] == 'comma' && (!vartrue($att['data']) || !vartrue($att['rule']))) if(varset($att['type']) == 'comma' && (empty($att['data']) || empty($att['rule'])))
{ {
$att['data'] = 'set'; $att['data'] = 'set';
$att['validate'] = 'set'; $att['validate'] = 'set';
@@ -5524,7 +5524,7 @@ class e_admin_ui extends e_admin_controller_ui
$att['data'] = 'set'; $att['data'] = 'set';
} }
if(($key !== 'options' && false !== varset($att['data']) && null !== $att['type'] && !vartrue($att['noedit'])) || vartrue($att['forceSave'])) if(($key !== 'options' && false !== varset($att['data']) && null !== varset($att['type']) && !vartrue($att['noedit'])) || vartrue($att['forceSave']))
{ {
$this->dataFields[$key] = vartrue($att['data'], 'str'); $this->dataFields[$key] = vartrue($att['data'], 'str');
} }
@@ -5540,7 +5540,7 @@ class e_admin_ui extends e_admin_controller_ui
$this->validationRules = array(); $this->validationRules = array();
foreach ($this->fields as $key => $att) foreach ($this->fields as $key => $att)
{ {
if(null === $att['type'] || vartrue($att['noedit'])) if(null === varset($att['type']) || vartrue($att['noedit']))
{ {
continue; continue;
} }

View File

@@ -3839,7 +3839,7 @@ class e_form
$method = $attributes['field']; // prevents table alias in method names. ie. u.my_method. $method = $attributes['field']; // prevents table alias in method names. ie. u.my_method.
$_value = $value; $_value = $value;
if($attributes['data'] == 'array') // FIXME @SecretR - please move this to where it should be. if(!empty($attributes['data']) && $attributes['data'] == 'array') // FIXME @SecretR - please move this to where it should be.
{ {
$value = e107::unserialize($value); // (saved as array, return it as an array) $value = e107::unserialize($value); // (saved as array, return it as an array)
} }