Do not use var_isset and fix if-then-else-codestyle

This commit is contained in:
Mark Schouten
2015-08-31 16:40:53 +02:00
parent 8543ca3d46
commit 73e4dd178f
2 changed files with 5 additions and 8 deletions

View File

@ -12,11 +12,6 @@
* @copyright (C) 2013 LibreNMS Group
*/
function var_isset($v) {
global $vars;
return isset($vars[$v]);
}
function var_eq($v, $t) {
global $vars;
if (isset($vars[$v]) && $vars[$v] == $t) {