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 >= array_count($notices)) {
+ if ($this->i >= count($this->notices)) {
return false;
} else {
- $n = $notices[$this->i];
+ $n = $this->notices[$this->i];
foreach ($fields as $f) {
$this->$f = $n->$f;
}