Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on tube view #123

Closed
luchaninov opened this issue Aug 12, 2016 · 1 comment
Closed

Error on tube view #123

luchaninov opened this issue Aug 12, 2016 · 1 comment

Comments

@luchaninov
Copy link

When you try to view the tube there is a warning:

Warning: Invalid argument supplied for foreach() in /var/www/lib/tpl/currentTubeJobsShowcase.php on line 2

Several browser refreshes help - there is some change that this warning does not appear. But this is really annoying.

You could check if array is ok (not null for example) before using it in foreach:

<?php if ($peek) foreach ($peek as $state => $job): ?>
@pentium10
Copy link
Collaborator

fixed by the latest commit, please test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants