mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +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__);
|
$this->db->query($sql,__LINE__,__FILE__);
|
||||||
if (!$this->db->next_record())
|
if (!$this->db->next_record())
|
||||||
{
|
{
|
||||||
return False;
|
return $this->readfile();
|
||||||
}
|
}
|
||||||
$this->db2obj();
|
$this->db2obj();
|
||||||
|
|
||||||
@ -227,7 +227,7 @@
|
|||||||
}
|
}
|
||||||
$file .= '.xul';
|
$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";
|
//echo "<p>Can't open '$file' !!!</p>\n";
|
||||||
return False;
|
return False;
|
||||||
|
Loading…
Reference in New Issue
Block a user