'original value returned by the previous query', '_badcontinue' );
}
- $prefix = $this->getDB()->strencode( $cont[0] );
- $title = $this->getDB()->strencode( $this->titleToKey( $cont[1] ) );
+ $db = $this->getDB();
+ $prefix = $db->addQuotes( $cont[0] );
+ $title = $db->addQuotes( $this->titleToKey( $cont[1] ) );
$from = intval( $cont[2] );
$this->addWhere(
- "iwl_prefix > '$prefix' OR " .
- "(iwl_prefix = '$prefix' AND " .
- "(iwl_title > '$title' OR " .
- "(iwl_title = '$title' AND " .
+ "iwl_prefix > $prefix OR " .
+ "(iwl_prefix = $prefix AND " .
+ "(iwl_title > $title OR " .
+ "(iwl_title = $title AND " .
"iwl_from >= $from)))"
);
}
$this->addWhereFld( 'iwl_title', $params['title'] );
$this->addOption( 'ORDER BY', 'iwl_from' );
} else {
- $this->addOption( 'ORDER BY', 'iwl_title, iwl_from' );
+ $this->addOption( 'ORDER BY', array(
+ 'iwl_title',
+ 'iwl_from'
+ ));
}
} else {
- $this->addOption( 'ORDER BY', 'iwl_prefix, iwl_title, iwl_from' );
+ $this->addOption( 'ORDER BY', array(
+ 'iwl_prefix',
+ 'iwl_title',
+ 'iwl_from'
+ ));
}
$this->addOption( 'LIMIT', $params['limit'] + 1 );