summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2009-10-02 19:10:20 -0400
committerStarla Insigna <hatkirby@fourisland.com>2009-10-02 19:10:20 -0400
commit0e4089184a44719fbd1284acb047ab7547674412 (patch)
tree42ec507b20376702061aa28e2b39f3565502e7fe
parent9dfba1e70866fb2bb551678f6e04b8ddfd5467e1 (diff)
downloadfourisland-0e4089184a44719fbd1284acb047ab7547674412.tar.gz
fourisland-0e4089184a44719fbd1284acb047ab7547674412.tar.bz2
fourisland-0e4089184a44719fbd1284acb047ab7547674412.zip
Fixed #116
-rwxr-xr-xincludes/functions.php5
1 files changed, 5 insertions, 0 deletions
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)
90 } 90 }
91 $title = strtolower($title); 91 $title = strtolower($title);
92 92
93 if (empty($title))
94 {
95 $title = 'special-characters';
96 }
97
93 $getprevs = "SELECT COUNT(*) FROM " . $table . " WHERE slug = \"" . $title . "\" OR slug LIKE \"" . $title . "-%\""; 98 $getprevs = "SELECT COUNT(*) FROM " . $table . " WHERE slug = \"" . $title . "\" OR slug LIKE \"" . $title . "-%\"";
94 $getprevs2 = mysql_query($getprevs); 99 $getprevs2 = mysql_query($getprevs);
95 @$getprevs3 = mysql_fetch_array($getprevs2); 100 @$getprevs3 = mysql_fetch_array($getprevs2);