Resolved gh-262 by adding more fixes to the count function around JCB

This commit is contained in:
Llewellyn van der Merwe 2018-04-13 17:33:04 +02:00
parent 694612aff9
commit c53716b811
No known key found for this signature in database
GPG Key ID: CAD7B16D27AF28C5
33 changed files with 33 additions and 33 deletions

View File

@ -265,7 +265,7 @@ class ###Component###Table###View### extends JTable
}
}
// check if there are any view values remaining
if (count($_result))
if (count( (array) $_result))
{
$_result = json_encode($_result);
$_result = array($_result);

View File

@ -265,7 +265,7 @@ class ComponentbuilderTableAdmin_fields extends JTable
}
}
// check if there are any view values remaining
if (count($_result))
if (count( (array) $_result))
{
$_result = json_encode($_result);
$_result = array($_result);

View File

@ -265,7 +265,7 @@ class ComponentbuilderTableAdmin_fields_conditions extends JTable
}
}
// check if there are any view values remaining
if (count($_result))
if (count( (array) $_result))
{
$_result = json_encode($_result);
$_result = array($_result);

View File

@ -265,7 +265,7 @@ class ComponentbuilderTableAdmin_view extends JTable
}
}
// check if there are any view values remaining
if (count($_result))
if (count( (array) $_result))
{
$_result = json_encode($_result);
$_result = array($_result);

View File

@ -265,7 +265,7 @@ class ComponentbuilderTableComponent_admin_views extends JTable
}
}
// check if there are any view values remaining
if (count($_result))
if (count( (array) $_result))
{
$_result = json_encode($_result);
$_result = array($_result);

View File

@ -265,7 +265,7 @@ class ComponentbuilderTableComponent_config extends JTable
}
}
// check if there are any view values remaining
if (count($_result))
if (count( (array) $_result))
{
$_result = json_encode($_result);
$_result = array($_result);

View File

@ -265,7 +265,7 @@ class ComponentbuilderTableComponent_custom_admin_menus extends JTable
}
}
// check if there are any view values remaining
if (count($_result))
if (count( (array) $_result))
{
$_result = json_encode($_result);
$_result = array($_result);

View File

@ -265,7 +265,7 @@ class ComponentbuilderTableComponent_custom_admin_views extends JTable
}
}
// check if there are any view values remaining
if (count($_result))
if (count( (array) $_result))
{
$_result = json_encode($_result);
$_result = array($_result);

View File

@ -265,7 +265,7 @@ class ComponentbuilderTableComponent_dashboard extends JTable
}
}
// check if there are any view values remaining
if (count($_result))
if (count( (array) $_result))
{
$_result = json_encode($_result);
$_result = array($_result);

View File

@ -265,7 +265,7 @@ class ComponentbuilderTableComponent_files_folders extends JTable
}
}
// check if there are any view values remaining
if (count($_result))
if (count( (array) $_result))
{
$_result = json_encode($_result);
$_result = array($_result);

View File

@ -265,7 +265,7 @@ class ComponentbuilderTableComponent_mysql_tweaks extends JTable
}
}
// check if there are any view values remaining
if (count($_result))
if (count( (array) $_result))
{
$_result = json_encode($_result);
$_result = array($_result);

View File

@ -265,7 +265,7 @@ class ComponentbuilderTableComponent_site_views extends JTable
}
}
// check if there are any view values remaining
if (count($_result))
if (count( (array) $_result))
{
$_result = json_encode($_result);
$_result = array($_result);

View File

@ -265,7 +265,7 @@ class ComponentbuilderTableComponent_updates extends JTable
}
}
// check if there are any view values remaining
if (count($_result))
if (count( (array) $_result))
{
$_result = json_encode($_result);
$_result = array($_result);

View File

@ -265,7 +265,7 @@ class ComponentbuilderTableCustom_admin_view extends JTable
}
}
// check if there are any view values remaining
if (count($_result))
if (count( (array) $_result))
{
$_result = json_encode($_result);
$_result = array($_result);

View File

@ -265,7 +265,7 @@ class ComponentbuilderTableCustom_code extends JTable
}
}
// check if there are any view values remaining
if (count($_result))
if (count( (array) $_result))
{
$_result = json_encode($_result);
$_result = array($_result);

View File

@ -265,7 +265,7 @@ class ComponentbuilderTableDynamic_get extends JTable
}
}
// check if there are any view values remaining
if (count($_result))
if (count( (array) $_result))
{
$_result = json_encode($_result);
$_result = array($_result);

View File

@ -265,7 +265,7 @@ class ComponentbuilderTableField extends JTable
}
}
// check if there are any view values remaining
if (count($_result))
if (count( (array) $_result))
{
$_result = json_encode($_result);
$_result = array($_result);

View File

@ -265,7 +265,7 @@ class ComponentbuilderTableFieldtype extends JTable
}
}
// check if there are any view values remaining
if (count($_result))
if (count( (array) $_result))
{
$_result = json_encode($_result);
$_result = array($_result);

View File

@ -265,7 +265,7 @@ class ComponentbuilderTableHelp_document extends JTable
}
}
// check if there are any view values remaining
if (count($_result))
if (count( (array) $_result))
{
$_result = json_encode($_result);
$_result = array($_result);

View File

@ -265,7 +265,7 @@ class ComponentbuilderTableJoomla_component extends JTable
}
}
// check if there are any view values remaining
if (count($_result))
if (count( (array) $_result))
{
$_result = json_encode($_result);
$_result = array($_result);

View File

@ -265,7 +265,7 @@ class ComponentbuilderTableLanguage extends JTable
}
}
// check if there are any view values remaining
if (count($_result))
if (count( (array) $_result))
{
$_result = json_encode($_result);
$_result = array($_result);

View File

@ -265,7 +265,7 @@ class ComponentbuilderTableLanguage_translation extends JTable
}
}
// check if there are any view values remaining
if (count($_result))
if (count( (array) $_result))
{
$_result = json_encode($_result);
$_result = array($_result);

View File

@ -265,7 +265,7 @@ class ComponentbuilderTableLayout extends JTable
}
}
// check if there are any view values remaining
if (count($_result))
if (count( (array) $_result))
{
$_result = json_encode($_result);
$_result = array($_result);

View File

@ -265,7 +265,7 @@ class ComponentbuilderTableLibrary extends JTable
}
}
// check if there are any view values remaining
if (count($_result))
if (count( (array) $_result))
{
$_result = json_encode($_result);
$_result = array($_result);

View File

@ -265,7 +265,7 @@ class ComponentbuilderTableLibrary_config extends JTable
}
}
// check if there are any view values remaining
if (count($_result))
if (count( (array) $_result))
{
$_result = json_encode($_result);
$_result = array($_result);

View File

@ -265,7 +265,7 @@ class ComponentbuilderTableLibrary_files_folders_urls extends JTable
}
}
// check if there are any view values remaining
if (count($_result))
if (count( (array) $_result))
{
$_result = json_encode($_result);
$_result = array($_result);

View File

@ -265,7 +265,7 @@ class ComponentbuilderTableServer extends JTable
}
}
// check if there are any view values remaining
if (count($_result))
if (count( (array) $_result))
{
$_result = json_encode($_result);
$_result = array($_result);

View File

@ -265,7 +265,7 @@ class ComponentbuilderTableSite_view extends JTable
}
}
// check if there are any view values remaining
if (count($_result))
if (count( (array) $_result))
{
$_result = json_encode($_result);
$_result = array($_result);

View File

@ -265,7 +265,7 @@ class ComponentbuilderTableSnippet extends JTable
}
}
// check if there are any view values remaining
if (count($_result))
if (count( (array) $_result))
{
$_result = json_encode($_result);
$_result = array($_result);

View File

@ -265,7 +265,7 @@ class ComponentbuilderTableSnippet_type extends JTable
}
}
// check if there are any view values remaining
if (count($_result))
if (count( (array) $_result))
{
$_result = json_encode($_result);
$_result = array($_result);

View File

@ -265,7 +265,7 @@ class ComponentbuilderTableTemplate extends JTable
}
}
// check if there are any view values remaining
if (count($_result))
if (count( (array) $_result))
{
$_result = json_encode($_result);
$_result = array($_result);

View File

@ -265,7 +265,7 @@ class ComponentbuilderTableValidation_rule extends JTable
}
}
// check if there are any view values remaining
if (count($_result))
if (count( (array) $_result))
{
$_result = json_encode($_result);
$_result = array($_result);

View File

@ -279,7 +279,7 @@ jQuery('#adminForm').on('change', '#jform_type',function (e)
<?php $numberAddconditions = range(0, count($this->item->addconditions) + 3, 1);?>
<?php $numberAddconditions = range(0, count( (array) $this->item->addconditions) + 3, 1);?>
// for the values already set
jQuery(document).ready(function(){