diff --git a/app/Module/Base.php b/app/Module/Base.php index 149b65d52..63f8743c9 100755 --- a/app/Module/Base.php +++ b/app/Module/Base.php @@ -894,6 +894,9 @@ class Base */ public static function arrayRetainInt($array, $reInt = false) { + if (!is_array($array)) { + return $array; + } foreach ($array as $k => $v) { if (!is_numeric($v)) { unset($array[$k]); diff --git a/database/migrations/2022_12_02_092357_add_project_task_push_logs_deleted_at.php b/database/migrations/2022_12_02_092357_add_project_task_push_logs_deleted_at.php new file mode 100644 index 000000000..314c1cda1 --- /dev/null +++ b/database/migrations/2022_12_02_092357_add_project_task_push_logs_deleted_at.php @@ -0,0 +1,34 @@ +softDeletes(); + } + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('project_task_push_logs', function (Blueprint $table) { + $table->dropSoftDeletes(); + }); + } +}