summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/classes/cformtable.inc.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-11-15 12:53:32 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-11-15 12:53:32 +0000
commite5c765ac713664bdae99dac1c975f4a8b7999c32 (patch)
tree6958b6105333f9012250a1e9c14916b94530cf71 /frontends/php/include/classes/cformtable.inc.php
parent600abf07f6952ce7f6a1e8417fb31e3202b55894 (diff)
downloadzabbix-e5c765ac713664bdae99dac1c975f4a8b7999c32.tar.gz
zabbix-e5c765ac713664bdae99dac1c975f4a8b7999c32.tar.xz
zabbix-e5c765ac713664bdae99dac1c975f4a8b7999c32.zip
- improved stricted PHP5 supporting (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@3486 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/classes/cformtable.inc.php')
-rw-r--r--frontends/php/include/classes/cformtable.inc.php14
1 files changed, 9 insertions, 5 deletions
diff --git a/frontends/php/include/classes/cformtable.inc.php b/frontends/php/include/classes/cformtable.inc.php
index a0bf889d..cf203ef6 100644
--- a/frontends/php/include/classes/cformtable.inc.php
+++ b/frontends/php/include/classes/cformtable.inc.php
@@ -21,19 +21,23 @@
<?php
class CFormTable extends CForm
{
-/* private */
+/* private *//*
var $align;
var $title;
- var $help;
-/* protected */
+ var $help;*/
+/* protected *//*
var $top_items = array();
var $center_items = array();
- var $bottom_items = array();
+ var $bottom_items = array();*/
/* public */
function CFormTable($title=null, $action=null, $method=null, $enctype=null, $form_variable=null)
{
global $_REQUEST;
+ $this->top_items = array();
+ $this->center_items = array();
+ $this->bottom_items = array();
+
if( null == $method )
{
$method = 'get';
@@ -102,7 +106,7 @@
{
if(is_null($value)) {
$this->help = new CHelp();
- } elseif(is_a($value,'chelp')) {
+ } elseif(strtolower(get_class($value)) == 'chelp') {
$this->help = $value;
} elseif(is_string($value)) {
$this->help = new CHelp($value);