Can set status of a websitepage

This commit is contained in:
Laurent Destailleur
2020-05-14 18:14:55 +02:00
parent 215cf9e6f8
commit 1bf677f537
4 changed files with 26 additions and 5 deletions

View File

@@ -8070,7 +8070,10 @@ abstract class CommonObject
{
if (empty($id) && empty($ref) && empty($morewhere)) return -1;
$sql = 'SELECT '.$this->getFieldList();
$fieldlist = $this->getFieldList();
if (empty($fieldlist)) return 0;
$sql = 'SELECT '.$fieldlist;
$sql .= ' FROM '.MAIN_DB_PREFIX.$this->table_element;
if (!empty($id)) $sql .= ' WHERE rowid = '.$id;