Diff for Metafox/db.inc.php between version 1.30 and 1.31
| version 1.30, 2006/09/20 15:02:07 |
version 1.31, 2006/10/01 14:34:32 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/db.inc.php,v 1.29 2006-09-13 14:48:12 nepto Exp $ */ |
/* $Platon: Metafox/db.inc.php,v 1.30 2006-09-20 15:02:07 nepto Exp $ */ |
| |
|
| /* |
/* |
| * updates: 23/5/2001, 29/7/2001, 11/10/2001, 2/11/2001, 11/1/2002, 23/7/2002 |
* updates: 23/5/2001, 29/7/2001, 11/10/2001, 2/11/2001, 11/1/2002, 23/7/2002 |
| Line 410 function ezin_get_article_list($section_ |
|
| Line 410 function ezin_get_article_list($section_ |
|
| } |
} |
| if (strlen($author_id) > 0) { |
if (strlen($author_id) > 0) { |
| if (is_numeric($author_id)) { |
if (is_numeric($author_id)) { |
| $query .= ' AND authors.id = '.intval($author_id); |
if (intval($author_id) > 0) { |
| |
$query .= ' AND authors.id = '.intval($author_id); |
| |
} |
| } else { |
} else { |
| $query .= ' AND authors.name LIKE "%'.addslashes($author_id).'%"'; |
$query .= ' AND authors.name LIKE "%'.addslashes($author_id).'%"'; |
| } |
} |
Platon Group <platon@platon.org> http://platon.org/
|
|