Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Fixes PHP warnings being thrown in development #172

Merged
merged 2 commits into from
Nov 14, 2016
Merged

Fixes PHP warnings being thrown in development #172

merged 2 commits into from
Nov 14, 2016

Conversation

kharysharpe
Copy link
Contributor

@kharysharpe kharysharpe commented Nov 14, 2016

Prevents stack trace from being dumped on the page during development.

Warning: Invalid argument supplied for foreach() in /.../public/app/plugins/soil/modules/relative-urls.php on line 44

Prevents stack trace from being dumped on the page during development.
@QWp6t
Copy link
Member

QWp6t commented Nov 14, 2016

foreach ((array) $sources as $source => $src) {
    $sources[$source]['url'] = \Roots\Soil\Utils\root_relative_url($src['url']);
}

@kharysharpe
Copy link
Contributor Author

Updated as per suggestion.

@retlehs retlehs merged commit 76c9ecf into roots:master Nov 14, 2016
@retlehs
Copy link
Member

retlehs commented Nov 14, 2016

thanks!

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

Successfully merging this pull request may close these issues.

3 participants