aghrfrabgbitz! help! strange error :)
| From: | Alex Black | Date: | Tue, 24 Oct 2000 18:12:01 +0000 |
| Subject: | aghrfrabgbitz! help! strange error :) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-21879@lists.php.net to get a copy of this message | ||
I get this error:
---------------------
Fatal error: Unsupported operand types in
path/to/lib/table_builder_class.lib on line 197
----------------------------
Since when are >= and + unsupported?
http://www.php.net/manual/language.operators.comparison.php
(obviously this function is defined within a class :)
---------------------------
function set_page(){
global $page;
if(isset($page)){
$this->current_page = $page;
}else{
$this->current_page = 1;
}//end else
if($this->items_per_page <=0) $this->items_per_page = $this->num_items;
$this->total_pages = ceil($this->num_items/$this->items_per_page);
**LINE 197 if($this->total_pages >= ($this->current_page + 1))
$this->is_next = TRUE;
if(1 <= $this->current_page - 1) $this->is_previous = TRUE;
$this->start_item = (($this->current_page - 1) * $this->items_per_page);
$this->end_item = $this->start_item + $this->items_per_page;
if($this->end_item > $this->num_items) $this->end_item = $this->num_items;
$this->next_href = $this->get_href($this->current_page + 1);
$this->previous_href = $this->get_href($this->current_page - 1);
}//end set_page
--------------------------------
_alex