diff options
| author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-02-03 17:03:31 +0000 |
|---|---|---|
| committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-02-03 17:03:31 +0000 |
| commit | 46f4daf879cb71b022874fc3b6551d97d400fe1b (patch) | |
| tree | a9e4d56860802c11418a3a67da3d91a82b9e911f /frontends/php/include/classes/ctextbox.inc.php | |
| parent | 1f829e896d022a4ed202d443d127346d26cbf7f2 (diff) | |
| download | zabbix-46f4daf879cb71b022874fc3b6551d97d400fe1b.tar.gz zabbix-46f4daf879cb71b022874fc3b6551d97d400fe1b.tar.xz zabbix-46f4daf879cb71b022874fc3b6551d97d400fe1b.zip | |
- Frontend improvements (Eugene)
+ Configuration -> General (finished)
+ Configuration -> Users (finished)
+ Configuration -> Hosts (finished)
+ Configuration -> Items (finished)
git-svn-id: svn://svn.zabbix.com/trunk@2603 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/classes/ctextbox.inc.php')
| -rw-r--r-- | frontends/php/include/classes/ctextbox.inc.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/frontends/php/include/classes/ctextbox.inc.php b/frontends/php/include/classes/ctextbox.inc.php index 9777bc74..dad97cbe 100644 --- a/frontends/php/include/classes/ctextbox.inc.php +++ b/frontends/php/include/classes/ctextbox.inc.php @@ -71,8 +71,10 @@ } return 0; } - function SetValue($value="") + function SetValue($value=NULL) { + if(is_null($value)) $value=""; + if(is_int($value)) { return $this->AddOption("value",strval($value)); @@ -85,7 +87,7 @@ } function SetSize($value) { - if(!is_int($value)) + if(!is_numeric($value)) { return $this->error("Incorrect value for SetSize [$value]"); } |
