$sepstr = '';
$where_clause = '';
$where_clause_args = array();
- while (list($undef, $nickname) = each($alias)) {
+ foreach ($alias as $nickname) {
$where_clause .= $sepstr . $this->identifier_quote_char . 'nickname' . $this->identifier_quote_char . ' = ?';
$where_clause_args[] = $nickname;
$sepstr = ' OR ';
$this->table, $this->owner);
$sepstr = '';
- while (list($undef, $nickname) = each($alias)) {
+ foreach ($alias as $nickname) {
$query .= sprintf("%s nickname='%s' ", $sepstr,
$this->dbh->quoteString($nickname));
$sepstr = 'OR';