Private GIT

Skip to content
Snippets Groups Projects
Unverified Commit bcc98004 authored by Gary Allan's avatar Gary Allan
Browse files

Bugfix: Avoid unnecessary SQL query in is_subnet_favourite()

parent 0598114c
No related branches found
No related tags found
No related merge requests found
...@@ -689,7 +689,6 @@ class User extends Common_functions { ...@@ -689,7 +689,6 @@ class User extends Common_functions {
* @return boolean * @return boolean
*/ */
public function is_subnet_favourite ($subnetId) { public function is_subnet_favourite ($subnetId) {
$this->fetch_favourite_subnets ();
# check if in array # check if in array
$subnets = explode(";", $this->user->favourite_subnets); $subnets = explode(";", $this->user->favourite_subnets);
$subnets = array_filter($subnets); $subnets = array_filter($subnets);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment