Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Component + Library installation for PDO driver with strict mode #9461

Merged
merged 5 commits into from Mar 18, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
23 changes: 19 additions & 4 deletions administrator/components/com_banners/tables/banner.php
Expand Up @@ -92,6 +92,21 @@ public function check()
$this->ordering = self::getNextOrder($this->_db->quoteName('catid') . '=' . $this->_db->quote($this->catid) . ' AND state>=0');
}

if (empty($this->publish_up))
{
$this->publish_up = $this->getDbo()->getNullDate();
}

if (empty($this->publish_down))
{
$this->publish_down = $this->getDbo()->getNullDate();
}

if (empty($this->modified))
{
$this->modified = $this->getDbo()->getNullDate();
}

return true;
}

Expand Down Expand Up @@ -178,19 +193,19 @@ public function store($updateNulls = false)
break;
case 2:
$date = JFactory::getDate('+1 year ' . date('Y-m-d', strtotime('now')));
$this->reset = $this->_db->quote($date->toSql());
$this->reset = $date->toSql();
break;
case 3:
$date = JFactory::getDate('+1 month ' . date('Y-m-d', strtotime('now')));
$this->reset = $this->_db->quote($date->toSql());
$this->reset = $date->toSql();
break;
case 4:
$date = JFactory::getDate('+7 day ' . date('Y-m-d', strtotime('now')));
$this->reset = $this->_db->quote($date->toSql());
$this->reset = $date->toSql();
break;
case 5:
$date = JFactory::getDate('+1 day ' . date('Y-m-d', strtotime('now')));
$this->reset = $this->_db->quote($date->toSql());
$this->reset = $date->toSql();
break;
}

Expand Down
1 change: 1 addition & 0 deletions libraries/cms/installer/adapter/component.php
Expand Up @@ -631,6 +631,7 @@ protected function storeExtension($deleteExisting = false)
$this->extension->client_id = 1;
$this->extension->params = $this->parent->getParams();
$this->extension->custom_data = '';
$this->extension->system_data = '';
}

$this->extension->manifest_cache = $this->parent->generateManifestCache();
Expand Down
1 change: 1 addition & 0 deletions libraries/cms/installer/adapter/library.php
Expand Up @@ -266,6 +266,7 @@ protected function storeExtension()

// Custom data
$this->extension->custom_data = '';
$this->extension->system_data = '';

// Update the manifest cache for the entry
$this->extension->manifest_cache = $this->parent->generateManifestCache();
Expand Down
1 change: 1 addition & 0 deletions libraries/cms/installer/adapter/module.php
Expand Up @@ -374,6 +374,7 @@ protected function storeExtension()

// Custom data
$this->extension->custom_data = '';
$this->extension->system_data = '';
$this->extension->manifest_cache = $this->parent->generateManifestCache();

if (!$this->extension->store())
Expand Down
1 change: 1 addition & 0 deletions libraries/cms/installer/adapter/package.php
Expand Up @@ -363,6 +363,7 @@ protected function storeExtension()

// Custom data
$this->extension->custom_data = '';
$this->extension->system_data = '';
$this->extension->params = $this->parent->getParams();
}

Expand Down