X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Ffix_refsystem.php;h=c4200c8fbc2ed4a1cf1d632eb72a708c7cf8aa0d;hp=6592b8061b708d689775be0ca912bfd41fc4dcad;hb=49acdb7a7adbcf25a8e8683b5581bfcec72b23bd;hpb=4373e155854012d687fdfcae4c69d1a940883fab diff --git a/inc/fix_refsystem.php b/inc/fix_refsystem.php index 6592b8061b..c4200c8fbc 100644 --- a/inc/fix_refsystem.php +++ b/inc/fix_refsystem.php @@ -11,7 +11,7 @@ * Kurzbeschreibung : Refback-Tabelle mit allen Refs generieren * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2013 by Mailer Developer Team * + * Copyright (c) 2009 - 2015 by Mailer Developer Team * * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -37,7 +37,7 @@ if (!defined('__SECURITY')) { // Sanity-check: Is there ref level 0? If so, this must be fixed to NULL and `level` must be increased by one $result = sqlQuery('SELECT `id` FROM `{?_MYSQL_PREFIX?}_refsystem` WHERE `level`=0', __FILE__, __LINE__); -if (!ifSqlHasZeroNums($result)) { +if (!ifSqlHasZeroNumRows($result)) { // Remove index temporaly sqlQueryAlterTable('ALTER TABLE `{?_MYSQL_PREFIX?}_refsystem` DROP INDEX `userid_level`', __FILE__, __LINE__); @@ -69,7 +69,7 @@ ORDER BY `userid` ASC', __FILE__, __LINE__); // Are there entries? -if (!ifSqlHasZeroNums($result_direct)) { +if (!ifSqlHasZeroNumRows($result_direct)) { // When 'walk' through all users while ($content = sqlFetchArray($result_direct)) { // Update refback table