Fixed undefined $user variable in Account::countAccountToReconcile

This commit is contained in:
Marcos García de La Fuente 2016-04-23 13:25:23 +02:00
parent 5bfc65676c
commit f195107bd1

View File

@ -1100,9 +1100,12 @@ class Account extends CommonObject
*/ */
public static function countAccountToReconcile() public static function countAccountToReconcile()
{ {
global $db, $conf, $langs; global $db, $conf, $user;
if ($user->societe_id) return 0; // protection pour eviter appel par utilisateur externe //Protection against external users
if ($user->societe_id) {
return 0;
}
$nb=0; $nb=0;