note 24155 added to language.oop
| From: | uws@php.net | Date: | Thu, 08 Aug 2002 08:36:19 +0000 |
| Subject: | note 24155 added to language.oop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-34513@lists.php.net to get a copy of this message | ||
The sample code provided above doesn't seem correct to me. The line that says:
if ($this->items[$artnr] > $num)
should be changed to:
if ($this->items[$artnr] >= $num)
Otherwise, you won't be able to remove all items from the cart.
--
http://www.php.net/manual/en/language.oop.php
http://master.php.net/manage/user-notes.php?action=edit+24155
http://master.php.net/manage/user-notes.php?action=delete+24155
http://master.php.net/manage/user-notes.php?action=reject+24155