We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d8db6b commit 40a3498Copy full SHA for 40a3498
1 file changed
lib/Cleantalk/ApbctWP/Cron.php
@@ -6,7 +6,7 @@ class Cron extends \Cleantalk\Common\Cron
6
{
7
/**
8
* Get fresh instance of Cron
9
- *
+ *
10
* @return Cron
11
*/
12
public static function getInstance()
@@ -61,19 +61,19 @@ public function getTasks()
61
$this->cron_option_name
62
)
63
);
64
-
+
65
if (!$result) {
66
return array();
67
}
68
69
// First unserialize the outer string
70
$unserialized = unserialize($result);
71
72
// If the unserialized data is still a string, it needs to be unserialized again
73
if (is_string($unserialized)) {
74
$unserialized = unserialize($unserialized);
75
76
77
return is_array($unserialized) ? $unserialized : array();
78
79
0 commit comments