mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-13 04:51:25 +01:00
Fix warnings
This commit is contained in:
@@ -17,17 +17,20 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/agpl-3.0.html>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/agpl-3.0.html>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$res=0;
|
// Load Dolibarr environment
|
||||||
if (! $res && file_exists("../../main.inc.php")) : $res=@include '../../main.inc.php';
|
require '../../../../main.inc.php';
|
||||||
endif;
|
|
||||||
if (! $res && file_exists("../../../main.inc.php")) : $res=@include '../../../main.inc.php';
|
/**
|
||||||
endif;
|
* @var DoliDB $db
|
||||||
if (! $res && file_exists("../../../../main.inc.php")) : $res=@include '../../../../main.inc.php';
|
* @var HookManager $hookmanager
|
||||||
endif;
|
* @var Translate $langs
|
||||||
|
* @var User $user
|
||||||
|
*/
|
||||||
|
|
||||||
// Protection if external user
|
// Protection if external user
|
||||||
if ($user->socid > 0) : accessforbidden();
|
if ($user->socid > 0) {
|
||||||
endif;
|
accessforbidden();
|
||||||
|
}
|
||||||
|
|
||||||
// Includes
|
// Includes
|
||||||
dol_include_once('admin/tools/ui/class/documentation.class.php');
|
dol_include_once('admin/tools/ui/class/documentation.class.php');
|
||||||
|
|||||||
Reference in New Issue
Block a user