| @@ -14,9 +14,12 @@ | ||
| 14 | 14 | |
| 15 | 15 | $current_smsapi = VikBooking::getSMSAPIClass(); |
| 16 | 16 | |
| 17 | 17 | $allf = glob(VBO_ADMIN_PATH . DIRECTORY_SEPARATOR . 'smsapi' . DIRECTORY_SEPARATOR . '*.php'); |
| 18 | -$allf = is_array($allf) ? $allf : []; | |
| 18 | +$allf = array_values(array_filter((array) $allf, function($fPath) { | |
| 19 | + $fPath = basename($fPath); | |
| 20 | + return $fPath && !preg_match('/^whatsapp/i', $fPath); | |
| 21 | +})); | |
| 19 | 22 | |
| 20 | 23 | $psel = "<select name=\"smsapi\" id=\"smsapifile\" onchange=\"vikLoadSMSParameters(this.value);\">\n<option value=\"\"></option>\n"; |
| 21 | 24 | $classfiles = []; |
| 22 | 25 | foreach ($allf as $af) { |
| @@ -257,9 +260,9 @@ | ||
| 257 | 260 | </fieldset> |
| 258 | 261 | </div> |
| 259 | 262 | |
| 260 | 263 | <script type="text/javascript"> |
| 261 | -if (jQuery.isFunction(jQuery.fn.tooltip)) { | |
| 264 | +if (typeof jQuery.fn.tooltip === 'function') { | |
| 262 | 265 | jQuery(".hasTooltip").tooltip(); |
| 263 | 266 | } |
| 264 | 267 | function displaySMSTexts(sval) { |
| 265 | 268 | if (parseInt(sval) <= 1) { |