Skip to content

Commit

Permalink
Remove model init from view
Browse files Browse the repository at this point in the history
  • Loading branch information
bochoven committed Jul 8, 2019
1 parent 309bc26 commit 5444a9e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion machine_controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ public function new_clients()
$lastweek = time() - 60 * 60 * 24 * 7;
$out = array();
$machine = new Machine_model();
new Reportdata_model;

$filter = get_machine_group_filter('AND');

Expand Down
5 changes: 0 additions & 5 deletions views/hardware_listing.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php $this->view('partials/head'); ?>

<?php //Initialize models needed for the table
new Machine_model;
new Reportdata_model;
?>

<div class="container">

<div class="row">
Expand Down

0 comments on commit 5444a9e

Please sign in to comment.