[pmwiki-users] PHP enumeration problem...

Patrick R. Michaud pmichaud at pobox.com
Tue Aug 22 12:29:48 CDT 2006


On Tue, Aug 22, 2006 at 12:45:16PM -0400, The Editor wrote:
> case "DataPage" :
> 1	if (substr($value, -2, 2) == ".#") {
> 2		$g = substr($value, 0, strlen($value)-2);
> 3	        foreach(ListPages("^\$\g\.[0-9]$") as $n) {

You probably want that to be

   foreach(ListPages("^$g\.[0-9]+$") as $n) {

Pm




More information about the pmwiki-users mailing list