input->getInt('id1'); $id2 = JFactory::getApplication()->input->getInt('id2'); $result = array(); if ($table1->load($id1) && $table2->load($id2)) { foreach (array($table1, $table2) as $table) { $object = new stdClass; $object->data = ContenthistoryHelper::prepareData($table); $object->version_note = $table->version_note; $object->save_date = $table->save_date; $result[] = $object; } return $result; } else { return false; } } }