Skip to content

Commit

Permalink
Fix two small PHP warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-xo committed Dec 9, 2023
1 parent 37890c2 commit 29547d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion External/phplastfmapi-0.7.1-xo/lastfmapi/class/cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function __construct($config) {
* @return void
*/
private function check_if_enabled() {
if ( $this->config['enabled'] == true && function_exists('sqlite_open') ) {
if ( isset($this->config['enabled']) && $this->config['enabled'] == true && function_exists('sqlite_open') ) {
$this->enabled = true;
}
else {
Expand Down
1 change: 1 addition & 0 deletions SSL/Unpacker/XoupCompiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class XoupCompiler
private $debug = true;
private $oobcheck = false;
private $data = array();
private $subs = array();

public function setDebug($debug)
{
Expand Down

0 comments on commit 29547d0

Please sign in to comment.