if (!defined('LACONICA')) { exit(1); }
-class NoticeWrapper {
+require_once(INSTALLDIR.'/classes/Notice.php');
+
+class NoticeWrapper extends Notice {
public $id; // int(4) primary_key not_null
public $profile_id; // int(4) not_null
static $fields = array('id', 'profile_id', 'uri', 'content', 'rendered',
'url', 'created', 'modified', 'reply_to', 'is_local', 'source');
$this->i++;
- if ($this->i >= count($notices)) {
+ if ($this->i >= count($this->notices)) {
return false;
} else {
$n = $this->notices[$this->i];