From 49b0ce7885e8c809a34329b6e2145828d1b01f53 Mon Sep 17 00:00:00 2001 From: ozhozh Date: Mon, 11 Jan 2010 18:20:00 +0000 Subject: [PATCH] Wrong bool in yourls_keyword_is_taken(). Fixes issue 222. git-svn-id: http://yourls.googlecode.com/svn/trunk@263 12232710-3e20-11de-b438-597f59cd7555 --- includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index 34fb71e..d29f9e5 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -361,9 +361,9 @@ function yourls_keyword_is_taken( $keyword ) { $table = YOURLS_DB_TABLE_URL; $already_exists = $ydb->get_var("SELECT COUNT(`keyword`) FROM `$table` WHERE `keyword` = '$keyword';"); if ( $already_exists ) - return false; + return true; - return true; + return false; } -- 2.45.0