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

in_array() expects parameter 2 to be array, null given #65

Open
tonyarnold opened this issue Sep 1, 2010 · 1 comment
Open

in_array() expects parameter 2 to be array, null given #65

tonyarnold opened this issue Sep 1, 2010 · 1 comment

Comments

@tonyarnold
Copy link
Contributor

When attaching more than one data source to a view, I'm getting the following error when trying to render the view on the frontend:

in_array() expects parameter 2 to be array, null given
An error occurred in /Users/tonyarnold/Sites/Contracts/wcc-fid.local/symphony/lib/class.general.php around line 824

819 }
820  
821 protected static $dependencies;
822  
823 protected function dependenciesSortCallback($a, $b) {
824     return (in_array($b, self::$dependencies[$a]) ? 1 : -1);
825 }
826  
827 /***
828  
@tonyarnold
Copy link
Contributor Author

OK, this got in the way - here's a quick fix:

    protected function dependenciesSortCallback($a, $b) {
        return (is_array(self::$dependencies[$a]) && in_array($b, self::$dependencies[$a]) ? 1 : -1);
    }

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

1 participant