From 0e4089184a44719fbd1284acb047ab7547674412 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Fri, 2 Oct 2009 19:10:20 -0400 Subject: Fixed #116 --- includes/functions.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'includes') diff --git a/includes/functions.php b/includes/functions.php index 1ff5c41..6b5d8e9 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -90,6 +90,11 @@ function generateSlug($title,$table) } $title = strtolower($title); + if (empty($title)) + { + $title = 'special-characters'; + } + $getprevs = "SELECT COUNT(*) FROM " . $table . " WHERE slug = \"" . $title . "\" OR slug LIKE \"" . $title . "-%\""; $getprevs2 = mysql_query($getprevs); @$getprevs3 = mysql_fetch_array($getprevs2); -- cgit 1.4.1