From: garvinhicking Date: Wed, 3 Aug 2005 11:02:31 +0000 (+0000) Subject: Fix searchPearmalink function to only return entry_id's > 0 X-Git-Tag: 0.9~244 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c0e2c21f4853360cff031c279c366aafddf7fcfa;p=s9y.git Fix searchPearmalink function to only return entry_id's > 0 Should fix a bug for Riscky. :) --- diff --git a/include/functions_permalinks.inc.php b/include/functions_permalinks.inc.php index 6d4a57e..9a3a9a7 100644 --- a/include/functions_permalinks.inc.php +++ b/include/functions_permalinks.inc.php @@ -240,6 +240,7 @@ function serendipity_searchPermalink($struct, $url, $default, $type = 'entry') { FROM {$serendipity['dbPrefix']}permalinks WHERE permalink = '" . serendipity_db_escape_string($url) . "' AND type = '" . serendipity_db_escape_string($type) . "' + AND entry_id > 0 LIMIT 1"; // echo $pq; // DEBUG // die($pq); // DEBUG