mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 22:43:19 +00:00
Merge pull request #1294 from mdarse/candidates-empty
Handle case when cterms XML doesn't exist yet
This commit is contained in:
@@ -887,10 +887,6 @@ class databox extends base
|
||||
|
||||
public function saveCterms(DOMDocument $dom_cterms)
|
||||
{
|
||||
if (null === $dom_cterms->documentElement) {
|
||||
$cterms = $dom_cterms->createElement('cterms');
|
||||
$dom_cterms->appendChild($cterms);
|
||||
}
|
||||
$dom_cterms->documentElement->setAttribute("modification_date", $now = date("YmdHis"));
|
||||
|
||||
$sql = "UPDATE pref SET value = :xml, updated_on = :date
|
||||
|
Reference in New Issue
Block a user