Skip to content

Commit 8e3855b

Browse files
authored
Merge pull request #25 from codebard/2.2.4_hotfix
Addressed some php warnings.
2 parents eaf429c + c3895f8 commit 8e3855b

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

index.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,18 @@ class cb_p6_core {
3232
// Holds plugin info. Overridden by options from db by merging db options into this
3333

3434
);
35+
36+
public $hardcoded =array(
37+
38+
// Holds hardcoded vars
39+
40+
);
41+
42+
public $lang =array(
43+
44+
// Holds lang vars
45+
46+
);
3547

3648
private function __construct()
3749
{

plugin/includes/widgets.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,9 @@ function widget($args, $instance) {
335335

336336
global $cb_p6;
337337
extract( $args );
338+
if (!isset($instance['title']) ) {
339+
$instance['title'] = '';
340+
}
338341
$title = apply_filters('widget_title', $instance['title']);
339342
$message = $instance['message'];
340343
?>

readme.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ You can report security bugs through the Patchstack Vulnerability Disclosure Pro
6565
= 2.2.4 =
6666

6767
* Removed unused updater code
68+
* Addressed some PHP warnings
6869

6970
= 2.2.3 =
7071

@@ -223,6 +224,7 @@ You can report security bugs through the Patchstack Vulnerability Disclosure Pro
223224
= 2.2.4 =
224225

225226
* Removed unused updater code
227+
* Addressed some PHP warnings
226228

227229
= 2.2.3 =
228230

0 commit comments

Comments
 (0)