derefence fix

This commit is contained in:
Nathan Coad
2016-07-22 11:46:18 +10:00
parent 21abb9331a
commit 72647c02d9

View File

@@ -942,11 +942,12 @@ function booking_requirements($phase) {
//check that the stripe library is present
if (($library = libraries_detect('stripe')) && !empty($library['installed'])) {
// The library is installed. Awesome!
watchdog('booking_debug', "<pre>Stripe library check\n@info</pre>", array('@info' => print_r(libraries_info('stripe'), true)));
$info = libraries_info('stripe');
watchdog('booking_debug', "<pre>Stripe library check\n@info</pre>", array('@info' => print_r($info, true)));
$requirements['booking_stripe_library'] = array(
'title' => $t('Booking Module Libraries'),
'description' => $t('Ensure that the stripe module is installed.'),
'value' => $t('Version !version installed.', array('!version' => libraries_info('stripe')->version)),
'value' => $t('Version !version installed.', array('!version' => $info->version)),
'severity' => REQUIREMENT_OK,
);
}