X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fnetwork_functions.php;h=246e054dfc7823cfb59a8702d6445797e58ab5a0;hb=6c0abc9f643c69610fe87be0ddb1a5dab95c6d39;hp=ad261c9aa045e27ec573a809acdd1f944d11e36b;hpb=cf3765c38cf0a76f396aca291f71858936e92956;p=mailer.git diff --git a/inc/libs/network_functions.php b/inc/libs/network_functions.php index ad261c9aa0..246e054dfc 100644 --- a/inc/libs/network_functions.php +++ b/inc/libs/network_functions.php @@ -366,7 +366,7 @@ ORDER BY `network_short_name` ASC", __FUNCTION__, __LINE__); // Do we have entries? - if (SQL_NUMROWS($result) > 0) { + if (!SQL_HASZERONUMS($result)) { // List all entries $rows = array(); while ($row = SQL_FETCHARRAY($result)) { @@ -410,7 +410,7 @@ ORDER BY ), __FUNCTION__, __LINE__); // Do we have entries? - if (SQL_NUMROWS($result) > 0) { + if (!SQL_HASZERONUMS($result)) { // List all entries $rows = array(); while ($row = SQL_FETCHARRAY($result)) { @@ -454,7 +454,7 @@ ORDER BY t.`network_type_handle` ASC", __FUNCTION__, __LINE__); // Do we have entries? - if (SQL_NUMROWS($result) > 0) { + if (!SQL_HASZERONUMS($result)) { // List all entries $rows = array(); while ($row = SQL_FETCHARRAY($result)) { @@ -618,7 +618,7 @@ function doAdminNetworkProcessAddnetworkForm () { // Displays selected networks for editing function doAdminNetworkProcessHandlenetworkForm () { // Do we have selections? - if (countPostSelection() > 0) { + if (ifPostContainsSelections()) { // Something has been selected, so start displaying one by one $OUT = ''; foreach (postRequestParameter('sel') as $id => $sel) { @@ -638,8 +638,8 @@ function doAdminNetworkProcessHandlenetworkForm () { 'POST' ), array( - getMessage('ADMIN_NETWORK_REQUEST_TYPE_GET'), - getMessage('ADMIN_NETWORK_REQUEST_TYPE_POST') + '{--ADMIN_NETWORK_REQUEST_TYPE_GET--}', + '{--ADMIN_NETWORK_REQUEST_TYPE_POST--}' ), $networkData['network_request_type'] ); @@ -684,7 +684,7 @@ function doAdminNetworkProcessHandlenetworkForm () { // Handle network type form function doAdminNetworkProcessHandlenetworktypeForm () { // Do we have selections? - if (countPostSelection() > 0) { + if (ifPostContainsSelections()) { // Load network data $networkData = getNetworkDataById(getRequestParameter('network')); @@ -742,7 +742,7 @@ function doAdminNetworkProcessHandlenetworktypeForm () { // Handle network request parameter form function doAdminNetworkProcessHandlerequestparamsForm () { // Do we have selections? - if (countPostSelection() > 0) { + if (ifPostContainsSelections()) { // Init cache array $GLOBALS['network_params_disabled'] = array(); @@ -812,7 +812,7 @@ function doAdminNetworkProcessHandlerequestparamsForm () { // Changes given networks function doAdminNetworkProcessChangenetworkForm () { // Do we have selections? - if (countPostSelection() > 0) { + if (ifPostContainsSelections()) { // By default nothing is updated $updated = 0; @@ -857,7 +857,7 @@ function doAdminNetworkProcessChangenetworkForm () { // Removes given networks function doAdminNetworkProcessRemovenetworkForm () { // Do we have selections? - if (countPostSelection() > 0) { + if (ifPostContainsSelections()) { // By default nothing is removed $removed = 0; @@ -926,7 +926,7 @@ function doAdminNetworkProcessAddnetworktypeForm () { // Changes given network type handlers function doAdminNetworkProcessChangenetworktypeForm () { // Do we have selections? - if (countPostSelection() > 0) { + if (ifPostContainsSelections()) { // By default nothing is updated $updated = 0; @@ -977,7 +977,7 @@ function doAdminNetworkProcessChangenetworktypeForm () { // Changes given network request parameters function doAdminNetworkProcessChangenetworkparamForm () { // Do we have selections? - if (countPostSelection() > 0) { + if (ifPostContainsSelections()) { // By default nothing is updated $updated = 0; @@ -1028,7 +1028,7 @@ function doAdminNetworkProcessChangenetworkparamForm () { // Removes given network type handlers function doAdminNetworkProcessRemovenetworktypeForm () { // Do we have selections? - if (countPostSelection() > 0) { + if (ifPostContainsSelections()) { // By default nothing is removed $removed = 0; @@ -1055,7 +1055,7 @@ function doAdminNetworkProcessRemovenetworktypeForm () { // Removes given network request parameters function doAdminNetworkProcessRemovenetworkparamForm () { // Do we have selections? - if (countPostSelection() > 0) { + if (ifPostContainsSelections()) { // By default nothing is removed $removed = 0;