Add check for empty sharing table when running tmux

This commit is contained in:
DariusIII
2018-09-04 09:11:45 +02:00
parent 363d1c545e
commit 6f6e130133
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -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; \
+2
View File
@@ -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