From 7b522cb29994fc8847bbd673bd5805ee0fcffd37 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Wed, 26 Sep 2018 14:44:56 +0200 Subject: [PATCH] Fix undefined offset 0 in Binaries class postdate function --- Blacklight/Binaries.php | 2 +- Changelog | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Blacklight/Binaries.php b/Blacklight/Binaries.php index 3d2913a2c..f3751c7d9 100755 --- a/Blacklight/Binaries.php +++ b/Blacklight/Binaries.php @@ -1262,7 +1262,7 @@ class Binaries $currentPost ) ); - if ($local > 0) { + if (! empty($local) && \count($local) > 0) { $date = $local[0]->date; break; } diff --git a/Changelog b/Changelog index 6a628de9e..b2db7ea12 100755 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ 2018-09-26 DariusIII + * Fix: Fix undefined offset 0 in Binaries class postdate function * Chg: Update tmux install script to use tmux 2.8-rc to compile tmux * Fix: Fix blacklist-list.tpl error * Chg: Fix checking for argv in reset_postprocessing.php