Don't abuse isValidSqlLink() for checking results
[mailer.git] / inc / sql-functions.php
index 2ed26a7da88e86b996c518c3e61fbcb33621d93e..b56d0dfca89d1f4da2cf204c334ea4e8439e489a 100644 (file)
@@ -585,7 +585,7 @@ function ifSqlTableExists ($tableName) {
                        array($tableName), __FUNCTION__, __LINE__);
 
                // Is a link there?
-               if (!isValidSqlLink($result)) {
+               if (!isValidSqlResult($result)) {
                        // Is installation phase?
                        if (isInstaller()) {
                                // Then silently abort here
@@ -630,7 +630,7 @@ function ifSqlTableColumnExists ($tableName, $columnName, $forceFound = FALSE) {
                ), __FUNCTION__, __LINE__);
 
        // Is a link there?
-       if (!isValidSqlLink($result)) {
+       if (!isValidSqlResult($result)) {
                // Is installation phase?
                if (isInstaller()) {
                        // Then silently abort here
@@ -672,7 +672,7 @@ function ifSqlTableIndexExist ($tableName, $keyName, $forceFound = FALSE) {
        $result = sqlQueryEscaped("SHOW INDEX FROM `%s`", array($tableName), __FUNCTION__, __LINE__);
 
        // Is a link there?
-       if (!isValidSqlLink($result)) {
+       if (!isValidSqlResult($result)) {
                // Is installation phase?
                if (isInstaller()) {
                        // Then silently abort here