Skip to content

Commit

Permalink
Fixed bug with missing slider class
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed Aug 24, 2016
1 parent bc63a6b commit 5e16934
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/MadeYourDay/Contao/SliderRunonce.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ public static function run()
&& $database->fieldExists('extension', 'tl_repository_installs')
) {
$result = $database->prepare('SELECT lickey FROM tl_repository_installs WHERE extension = \'rocksolid-slider-pro\'')->execute();
if ($result && Slider::checkLicense((string)$result->lickey)) {
if (
$result
&& $result->lickey
&& class_exists('MadeYourDay\\Contao\\Slider')
&& Slider::checkLicense((string)$result->lickey)
) {
\Config::getInstance()->add(
'$GLOBALS[\'TL_CONFIG\'][\'rocksolid_slider_license\']',
(string)$result->lickey
Expand Down

0 comments on commit 5e16934

Please sign in to comment.