Thread:Skin talk:Erudite/New Pages not working/reply (3)

I found this cured the new pages problem for me .. please excuse the poor PHP it is not my native programming language

if ($res->numRows > 0) { $res->rewind; $increment = 0; while ($res->numRows >= $increment) { $test[$increment++] = $res->fetchRow; }			foreach($test as $i) { $name = str_replace('_', ' ', $i['rc_title']); $url = $this->getSkin->makeUrl($i['rc_title']); $pgs[] = array('name' => $name, 'url' => $url); }		}

Even now I can see ways to improve this, however this definitely works for me.