Comments (5)
Changing the line
if($val == '' || !count($val)) continue;
to
if($val == '' || is_null($val) || (is_array($val) && count($val) == 0)) continue;
seems to be a valid workaround.
from dokuwiki-plugin-data.
Can you send a pull request?
from dokuwiki-plugin-data.
Okay, I did. Just am not completely sure if that is all there is to it, just my particular use-case does not print a warning anymore.
Oh, and it seems Travis CI fails for all 7.x PHP versions. But not showing what exactly fails, which lines of code are wrong. I suspect it might be just because of other similar cases where some instructions were too laissez-faire for PHP 7.x.
from dokuwiki-plugin-data.
Had the same issue with the discussions plugin - line 425 in action.php (docuwiki/lib/plugins/discussion)
$cnt = count($data['comments'])
is changed to:
if($data['comments'] == '' || is_null($data['comments']) || (is_array($data['comments']) && count($data['comments']) == 0)) {
$cnt = 0;
} else {
$cnt = count($data['comments']);
}
from dokuwiki-plugin-data.
Same story here. Waiting for a verified solution. The workaround above is welcome.
from dokuwiki-plugin-data.
Related Issues (20)
- generated tables missing border lines when using bootstrap3 template
- Pull-down menues for filtering datatable
- Feature : make some field visible but not editable in the dataentry
- [BUG] datatable don't display multiple links from a dataentry field
- Bug: Some column names breaks the whole page rendering
- Using Dataentry with Ckgedit HOT 1
- Comparators "<" and ">" not working as expected
- missing datas - bug or am I stupid? HOT 2
- URLs in datalist output don't use rewrite HOT 1
- How many datatables are allowed per page HOT 5
- First item selected by default in multiselect when using Bureaucracy plugin form
- No editor for edit target plugin_data found
- filteror doesn't work with non-wildcard operators
- Multiple values with type aliases broken HOT 2
- datatable alingment error HOT 1
- deprecation warnings helper_plugin_data
- Aggregations destroyed after update of SQLite plugin HOT 6
- 📢 State of the Plugin
- Warning: Undefined array key HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dokuwiki-plugin-data.