mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Add check for empty sharing table when running tmux
This commit is contained in:
@@ -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; \
|
||||
|
||||
Reference in New Issue
Block a user