Fix var not defined
This commit is contained in:
parent
8771dc197b
commit
404bfd8b7b
@ -28,6 +28,8 @@ require '../main.inc.php';
|
|||||||
// Load translation files required by the page
|
// Load translation files required by the page
|
||||||
$langs->loadLangs(array('admin', 'companies'));
|
$langs->loadLangs(array('admin', 'companies'));
|
||||||
|
|
||||||
|
$action = '';
|
||||||
|
|
||||||
if (!$user->admin) {
|
if (!$user->admin) {
|
||||||
accessforbidden();
|
accessforbidden();
|
||||||
}
|
}
|
||||||
@ -120,11 +122,12 @@ print '<br>';
|
|||||||
|
|
||||||
// Add hook to add information
|
// Add hook to add information
|
||||||
$parameters = array();
|
$parameters = array();
|
||||||
|
$object = new stdClass();
|
||||||
$reshook = $hookmanager->executeHooks('addHomeSetup', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
|
$reshook = $hookmanager->executeHooks('addHomeSetup', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
|
||||||
print $hookmanager->resPrint;
|
print $hookmanager->resPrint;
|
||||||
if (empty($reshook)) {
|
if (empty($reshook)) {
|
||||||
// Show into other
|
// Show into other
|
||||||
print '<span class="opacitymedium hideonsmartphone">'.$langs->trans("SetupDescription5")."</span><br>";
|
//print '<span class="opacitymedium hideonsmartphone">'.$langs->trans("SetupDescription5")."</span><br>";
|
||||||
print '<br class="hideonsmartphone">';
|
print '<br class="hideonsmartphone">';
|
||||||
|
|
||||||
// Show logo
|
// Show logo
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user