X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-mem_add.php;h=8ed6dea0029b287ac0b0e4fbce1da1448cbcc619;hp=e68c4ccedd6ae187e41d66410fa6f080d6986a66;hb=49acdb7a7adbcf25a8e8683b5581bfcec72b23bd;hpb=155492a5b96cec674846973a8524238b0365a848 diff --git a/inc/modules/admin/what-mem_add.php b/inc/modules/admin/what-mem_add.php index e68c4ccedd..8ed6dea002 100644 --- a/inc/modules/admin/what-mem_add.php +++ b/inc/modules/admin/what-mem_add.php @@ -17,7 +17,7 @@ * $Author:: $ * * -------------------------------------------------------------------- * * 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 * @@ -58,7 +58,7 @@ if (!isFormSent()) { // Get all available main menus $result = sqlQuery("SELECT `action`, `title`, `sort` FROM `{?_MYSQL_PREFIX?}_member_menu` WHERE (`what`='' OR `what` IS NULL) ORDER BY `sort` ASC", __FILE__, __LINE__); - if (!ifSqlHasZeroNums($result)) { + if (!ifSqlHasZeroNumRows($result)) { // Read menu structure // @TODO Cant this be rewritten? while ($content = sqlFetchArray($result)) { @@ -99,7 +99,7 @@ if (!isFormSent()) { foreach ($menus as $key_main => $value_main) { $result = sqlQueryEscaped("SELECT `what`, `title`, `sort` FROM `{?_MYSQL_PREFIX?}_member_menu` WHERE `action`='%s' AND `what` != '' ORDER BY `sort` ASC", array($value_main), __FILE__, __LINE__); - if (!ifSqlHasZeroNums($result)) { + if (!ifSqlHasZeroNumRows($result)) { // Initialize arrays $menus[$value_main] = array(); $titles[$value_main] = array();