mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:18:57 +01:00
suppressed an error-msg and try reading the template from the filesystem if it is not found in the db
This commit is contained in:
parent
5f99e6de5c
commit
a611b55d4c
@ -204,7 +204,7 @@
|
||||
$this->db->query($sql,__LINE__,__FILE__);
|
||||
if (!$this->db->next_record())
|
||||
{
|
||||
return False;
|
||||
return $this->readfile();
|
||||
}
|
||||
$this->db2obj();
|
||||
|
||||
@ -227,7 +227,7 @@
|
||||
}
|
||||
$file .= '.xul';
|
||||
|
||||
if ($this->name == '' || $app == '' || $name == '' || !is_readable($file) || !($f = fopen($file,'r')))
|
||||
if ($this->name == '' || $app == '' || $name == '' || !@file_exists($file) || !($f = @fopen($file,'r')))
|
||||
{
|
||||
//echo "<p>Can't open '$file' !!!</p>\n";
|
||||
return False;
|
||||
|
Loading…
Reference in New Issue
Block a user