From c0e2c21f4853360cff031c279c366aafddf7fcfa Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Wed, 3 Aug 2005 11:02:31 +0000 Subject: [PATCH] Fix searchPearmalink function to only return entry_id's > 0 Should fix a bug for Riscky. :) --- include/functions_permalinks.inc.php | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.5