Skip to content

Commit

Permalink
v1.0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
ve3 committed Mar 3, 2022
1 parent a6f8986 commit d9947b9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion App/Controllers/Admin/Downloads/Xhr/XhrFileBrowser.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,9 @@ public function deleteFile()
$output['deleteUrl']
)
);
if (count($itemRow) > 0) {
if (is_object($itemRow) && property_exists($itemRow, 'download_id')) {
// if found item in db. unable to delete this, never!
$output['debug'] = $itemRow;
$output['download_id'] = $itemRow->download_id;
$output['unlink'] = false;
$output['deleted'] = false;
Expand Down
2 changes: 1 addition & 1 deletion rd-downloads.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Rundiz Downloads
* Plugin URI: https://rundiz.com/?p=319
* Description: Download manager for WordPress that support GitHub auto update.
* Version: 1.0.9
* Version: 1.0.10
* Requires at least: 4.6.0
* Requires PHP: 5.5
* Author: Vee Winch
Expand Down
9 changes: 7 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
=== Rundiz Downloads ===
Contributors: okvee
Tags: downloads, download, download manager, file hosting, GitHub
Tested up to: 5.9
Stable tag: 1.0.9
Tested up to: 6.0
Stable tag: 1.0.10
License: MIT
License URI: https://opensource.org/licenses/MIT
Requires at least: 4.6.0
Expand Down Expand Up @@ -72,6 +72,11 @@ Yes, the plugin's tables will be dropped on uninstall.
12. Add a download dialog after clicked on the button in classic editor.

== Changelog ==
= 1.0.10 =
2022-03-03

* Fix `count()` error on PHP 7.2+.

= 1.0.9 =
2022-01-23

Expand Down

0 comments on commit d9947b9

Please sign in to comment.