diff options
author | Andrew Dolgov <[email protected]> | 2021-11-10 21:06:42 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-11-10 21:06:42 +0300 |
commit | f9e574701b89270b2be1606119a9d4aed46b6113 (patch) | |
tree | 26755227f747bc199378ddb1febe36250293220a | |
parent | aa0de81680f2558c1ce38a456ad0a5beb2934240 (diff) |
phpstan 1.0 cleanup
-rw-r--r-- | init.php | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -1,6 +1,5 @@ <?php class UI_Gravatar extends Plugin { - private $host; private $gravatar_hash = ""; function about() { @@ -12,16 +11,12 @@ class UI_Gravatar extends Plugin { } function init($host) { - $this->host = $host; - $sth = $this->pdo->prepare("SELECT email FROM ttrss_users WHERE id = ?"); $sth->execute([($_SESSION['uid'] ?? 0)]); if ($row = $sth->fetch()) { $this->gravatar_hash = md5(trim($row['email'])); } - - //$host->add_hook($host::HOOK_PREFS_TAB, $this); } function get_js() { |