Re: Fatal error: Unsupported operand types
| From: | chris smith | Date: | Sun, 16 Apr 2006 10:42:01 +0000 |
| Subject: | Re: Fatal error: Unsupported operand types | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-234070@lists.php.net to get a copy of this message | ||
On 4/16/06, kmh496 <kmh496@kornet.net> wrote:
>
> can somebody explain why
>
> $this->param = $this->SYSTEM->db->answer + $this->param;
>
> is causing the error
>
>
> Fatal error: Unsupported operand types
> in /var/www/current/mjguest/modules/settings.php on line 52
>
>
>
> context is
>
>
> function settings(&$SYSTEM)
> {
> $this->SYSTEM = &$SYSTEM;
> $this->SYSTEM->db->ask(1, 'settings_load');
> $this->SYSTEM->db->get_row();
>
> $this->param = $this->SYSTEM->db->answer + $this->param;
> }
What is $this->param set to initially?
What is $this->SYSTEM->db->answer ?
use gettype and see what they are:
echo gettype($this->param) . '<br/>';
echo gettype($this->SYSTEM->db->answer) . '<br/>';
--
Postgresql & php tutorials
http://www.designmagick.com/