From d796306abbbfe2849bfc062a413f6e84767de42d Mon Sep 17 00:00:00 2001 From: PhilW Date: Wed, 22 May 2019 18:01:02 +0100 Subject: [PATCH] fix php 7.2 compat (#10) --- swipe.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swipe.php b/swipe.php index 1078eab..763d101 100644 --- a/swipe.php +++ b/swipe.php @@ -105,7 +105,7 @@ class swipe extends rcube_plugin $this->list_type = $data['list_type']; $this->actions[$this->list_type] = $data['actions']; - if (sizeof($this->actions[$this->list_type]) == 0) { + if (empty($this->actions[$this->list_type])) { // no swipe actions found, disable the plugin return; }