equal
deleted
inserted
replaced
1586 $q = substr($q, 0, strlen($q)-1); |
1586 $q = substr($q, 0, strlen($q)-1); |
1587 // Build the WHERE statements |
1587 // Build the WHERE statements |
1588 $q .= ' WHERE '; |
1588 $q .= ' WHERE '; |
1589 $k = array_keys($cpage); |
1589 $k = array_keys($cpage); |
1590 if ( !isset($cpage) ) |
1590 if ( !isset($cpage) ) |
1591 die('no cpage'); |
1591 die('[internal] no cpage'); |
1592 foreach($k as $c) |
1592 foreach($k as $c) |
1593 { |
1593 { |
1594 if($c != 'urlname_nons' && $c != 'urlname' && $c != 'really_protected') |
1594 if($c != 'urlname_nons' && $c != 'urlname' && $c != 'really_protected') |
1595 { |
1595 { |
1596 $q .= $c.'=\''.$db->escape($cpage[$c]).'\' AND '; |
1596 $q .= $c.'=\''.$db->escape($cpage[$c]).'\' AND '; |