Reddit.php
authorAlan Knowles <alan@roojs.com>
Tue, 16 Dec 2014 10:15:52 +0000 (18:15 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 16 Dec 2014 10:15:52 +0000 (18:15 +0800)
Reddit.php

index 7f36cff..6628c68 100644 (file)
@@ -28,7 +28,13 @@ class  Reddit  extends Pman
         ");
         
         $f->orderBy('created_dt ASC');
-        $this->feed = $f->fetchAll();
+        $f->find();
+        $this->feed=array();
+        while ($f->fetch())
+            $c = clone($f);
+            $c->embed_ar = $c->embedsArray();
+            $this->feed[] = $c;
+        }
         
         
     }