Skip to content
Browse files

Skip null filenames

Avoids rendering markup with null filenames:
    <script src="/assets/j/"></script>
  • Loading branch information...
1 parent a226b7e commit 7573aef824d5586d107363e5a4322b3c277aba8e @luciferous luciferous committed Oct 15, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 OpenVBX/libraries/MY_Controller.php
View
4 OpenVBX/libraries/MY_Controller.php
@@ -136,11 +136,11 @@ public function __construct()
foreach ($scripts as $script) {
- $this->template->add_js("assets/j/$script");
+ if ($script) $this->template->add_js("assets/j/$script");
}
foreach ($styles as $style) {
- $this->template->add_css("assets/c/$style");
+ if ($style) $this->template->add_css("assets/c/$style");
}
}

0 comments on commit 7573aef

Please sign in to comment.
Something went wrong with that request. Please try again.