1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-24 07:03:06 +02:00

Column count fix for 'no records found' message.

This commit is contained in:
Cameron
2013-05-20 04:50:56 -07:00
parent ba358b975b
commit 37fa9241d3

View File

@@ -3194,10 +3194,10 @@ class e_form
if(!$tree) if(!$tree)
{ {
$text .= " $text .= "
<tr> </tbody>
<td colspan='".count($current_fields)."' class='center middle'>".LAN_NO_RECORDS."</td> </table>";
</tr>
"; $text .= "<div class='alert alert-block alert-info center middle'>".LAN_NO_RECORDS."</div>"; // not prone to column-count issues.
} }
else else
{ {
@@ -3208,13 +3208,13 @@ class e_form
$text .= $this->renderTableRow($fields, $current_fields, $model->getData(), $options['pid']); $text .= $this->renderTableRow($fields, $current_fields, $model->getData(), $options['pid']);
} }
e107::setRegistry('core/adminUI/currentListModel', null); e107::setRegistry('core/adminUI/currentListModel', null);
$text .= "</tbody>
</table>";
} }
$text .= "
</tbody> $text .= vartrue($options['table_post']);
</table>
".vartrue($options['table_post'])."
";
if($tree && $amount) if($tree && $amount)