foreach ($sql->select(array('table' => 'categories', 'where' => array("parent = $id"), 'orderby' => array('ord', 'ASC'))) as $row){
$find = array('/{id}/i', '/{name}/i', '/{url}/i', '/{icon}/i', '/{template}/i', '/{prefix}/i', '/[php](.?)[\/php]/ie', '/{parent}/i', '/{ord}/i');
$repl = array($row['id'], $row['name'], $row['url'], ($row['icon'] ? '' : ''), $row['template'], (($row['parent'] or !$no_prefix) ? $prefix : ''), '\1', $row['parent'], $row['ord']);
$johnny_left_teat .= ($no_prefix ? preg_replace('/('.$prefix.'{1})$/i', '', str_repeat($prefix, $level)) : str_repeat($prefix, $level));
$johnny_left_teat .= preg_replace($find, $repl, $tpl); *// the error in this line**
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)