Browse Source

Fixed _construct

tags/v1.3^2
Teknikode 6 years ago
parent
commit
f7d4b0f83b
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      includes/classes/User.class.php

+ 1
- 1
includes/classes/User.class.php View File

@@ -37,7 +37,7 @@ class User {
$this->blog_title = (isset($data['blog_title'])) ? $data['blog_title'] : "";
$this->blog_desc = (isset($data['blog_desc'])) ? $data['blog_desc'] : "";
$this->roles = array();
$results = $db->select("user_role as ur JOIN roles as r ON ur.role_id = r.role_id", "WHERE ur.user_id=?", array($this->id), "ur.role_id, r.role_name");
$results = $db->select("user_role as ur JOIN roles as r ON ur.role_id = r.role_id", "ur.user_id=?", array($this->id), "ur.role_id, r.role_name");
$users = array();
foreach ($results as $result)
{

Loading…
Cancel
Save