diff --git a/Blacklight/TmuxRun.php b/Blacklight/TmuxRun.php index 4de07a9b8..cb7d25dad 100755 --- a/Blacklight/TmuxRun.php +++ b/Blacklight/TmuxRun.php @@ -770,7 +770,7 @@ class TmuxRun extends Tmux { $sharing = (array) array_first(DB::select('SELECT enabled, posting, fetching FROM sharing')); - if ((int) $sharing['enabled'] === 1 && (int) $runVar['settings']['run_sharing'] === 1 && ((int) $sharing['posting'] === 1 || (int) $sharing['fetching'] === 1) && shell_exec("tmux list-panes -t{$runVar['constants']['tmux_session']}:${pane} | grep ^0 | grep -c dead") == 1) { + if (! empty($sharing) && (int) $sharing['enabled'] === 1 && (int) $runVar['settings']['run_sharing'] === 1 && ((int) $sharing['posting'] === 1 || (int) $sharing['fetching'] === 1) && shell_exec("tmux list-panes -t{$runVar['constants']['tmux_session']}:${pane} | grep ^0 | grep -c dead") == 1) { shell_exec( "tmux respawnp -t{$runVar['constants']['tmux_session']}:${pane}.0 ' \ {$runVar['commands']['_php']} {$runVar['paths']['misc']}/update/multiprocessing/postprocess.php sha; \ diff --git a/Changelog b/Changelog index 83a81d117..af0a5bf01 100755 --- a/Changelog +++ b/Changelog @@ -1,3 +1,5 @@ +2018-09-04 DariusIII + * Fix: Add check for empty sharing table when running tmux 2018-09-03 DariusIII * Fix: Fix monitor counts and percentages displayed in main monitor pane * Chg: Update ReleaseRemover class