fixed gh-53 the database error call on a.*, very strange

This commit is contained in:
Llewellyn van der Merwe 2017-04-05 07:27:39 +01:00
parent bd0febd92c
commit d31b0b6c0c
No known key found for this signature in database
GPG Key ID: CAD7B16D27AF28C5

View File

@ -101,7 +101,7 @@ class ComponentbuilderModelJoomla_components extends JModelList
$query = $db->getQuery(true); $query = $db->getQuery(true);
// Select some fields // Select some fields
$query->select($db->quoteName('a.*')); $query->select(array('a.*'));
// From the componentbuilder_joomla_component table // From the componentbuilder_joomla_component table
$query->from($db->quoteName('#__componentbuilder_joomla_component', 'a')); $query->from($db->quoteName('#__componentbuilder_joomla_component', 'a'));
@ -459,7 +459,7 @@ class ComponentbuilderModelJoomla_components extends JModelList
$query = $db->getQuery(true); $query = $db->getQuery(true);
// Select some fields // Select some fields
$query->select($db->quoteName('a.*')); $query->select(array('a.*'));
// From the componentbuilder_ANY table // From the componentbuilder_ANY table
$query->from($db->quoteName('#__componentbuilder_'. $table, 'a')); $query->from($db->quoteName('#__componentbuilder_'. $table, 'a'));