diff options
author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-05-10 14:28:16 +0000 |
---|---|---|
committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-05-10 14:28:16 +0000 |
commit | 04699fc9e44b07c51a7664703f3dc897a82e0c4f (patch) | |
tree | 1ed66a797da316bfed9739e924926847b35cd937 /frontends/php/include/profiles.inc.php | |
parent | ef7ed2fb63f67c7a7f0699624d264b5dd797651f (diff) | |
download | zabbix-04699fc9e44b07c51a7664703f3dc897a82e0c4f.tar.gz zabbix-04699fc9e44b07c51a7664703f3dc897a82e0c4f.tar.xz zabbix-04699fc9e44b07c51a7664703f3dc897a82e0c4f.zip |
- [DEV-137] small fixes (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5697 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/profiles.inc.php')
-rw-r--r-- | frontends/php/include/profiles.inc.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/frontends/php/include/profiles.inc.php b/frontends/php/include/profiles.inc.php index 7bb9f159..e1302641 100644 --- a/frontends/php/include/profiles.inc.php +++ b/frontends/php/include/profiles.inc.php @@ -207,7 +207,7 @@ function insert_profile($idx,$value,$type,$resource=null){ global $USER_DETAILS; $profileid = get_dbid('profiles', 'profileid'); - + $val1 = $value; $val2 = ''; $rsrc = is_null($resource)?'':$resource; @@ -221,7 +221,7 @@ function insert_profile($idx,$value,$type,$resource=null){ $rsrc = isset($value['resource'])?$value['resource']:$rsrc; } - if(empty($val1)) return false; + if(is_null($val1)) return false; $sql='INSERT INTO profiles (profileid,userid,idx,value,value2,resource,valuetype)'. ' VALUES ('.$profileid.','. @@ -231,6 +231,7 @@ function insert_profile($idx,$value,$type,$resource=null){ zbx_dbstr($val2).','. zbx_dbstr($rsrc).','. $type.')'; + $result = DBexecute($sql); return $result; |