Skip to content

Commit 73bcc0c

Browse files
committed
FIX: accountancy: warning when account not found in plan
1 parent c3b35d4 commit 73bcc0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

htdocs/accountancy/class/bookkeeping.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2147,7 +2147,7 @@ public function get_compte_desc($account = null)
21472147
dol_syslog(get_class($this)."::select_account", LOG_DEBUG);
21482148
$resql = $this->db->query($sql);
21492149
if ($resql) {
2150-
$obj = '';
2150+
$obj = (object) array('label' => '');
21512151
if ($this->db->num_rows($resql)) {
21522152
$obj = $this->db->fetch_object($resql);
21532153
}

0 commit comments

Comments
 (0)