]> git.mxchange.org Git - friendica.git/commit
More usage of dbm::is_result($r) instead of count($r):
authorRoland Häder <roland@mxchange.org>
Tue, 13 Dec 2016 09:44:13 +0000 (10:44 +0100)
committerRoland Häder <roland@mxchange.org>
Tue, 13 Dec 2016 09:44:13 +0000 (10:44 +0100)
commit6a8a36f12d00f35004fbb034972ca87dd1a3c4f5
treeeafcee863c70e4f4727af894c50153d03ffcd0fa
parent293436e5fd5110220c969513858dbb979f1f35d3
More usage of dbm::is_result($r) instead of count($r):
- count() returns very different results and never a boolean (not even false on
  error condition).
- therefore you should NOT use it in boolean expressions. This still *can* be
  done in PHP because of its lazyness. But it is discouraged if it comes to
  more clean code.

Signed-off-by: Roland Häder <roland@mxchange.org>
115 files changed:
include/Contact.php
include/Core/Config.php
include/Core/PConfig.php
include/Probe.php
include/acl_selectors.php
include/api.php
include/auth.php
include/contact_selectors.php
include/contact_widgets.php
include/conversation.php
include/datetime.php
include/delivery.php
include/dfrn.php
include/enotify.php
include/event.php
include/expire.php
include/fcontact.php
include/follow.php
include/group.php
include/identity.php
include/items.php
include/like.php
include/lock.php
include/message.php
include/nav.php
include/notifier.php
include/oauth.php
include/onepoll.php
include/plugin.php
include/queue_fn.php
include/redir.php
include/security.php
include/socgraph.php
include/text.php
include/threads.php
include/uimport.php
include/user.php
mod/admin.php
mod/allfriends.php
mod/api.php
mod/attach.php
mod/cal.php
mod/common.php
mod/community.php
mod/contactgroup.php
mod/contacts.php
mod/content.php
mod/crepair.php
mod/delegate.php
mod/dfrn_confirm.php
mod/dfrn_notify.php
mod/dfrn_poll.php
mod/dfrn_request.php
mod/directory.php
mod/editpost.php
mod/events.php
mod/friendica.php
mod/fsuggest.php
mod/group.php
mod/ignored.php
mod/install.php
mod/item.php
mod/lockview.php
mod/lostpass.php
mod/manage.php
mod/match.php
mod/message.php
mod/modexp.php
mod/mood.php
mod/msearch.php
mod/network.php
mod/nogroup.php
mod/noscrape.php
mod/notes.php
mod/notice.php
mod/notifications.php
mod/notify.php
mod/openid.php
mod/photo.php
mod/photos.php
mod/poco.php
mod/poke.php
mod/post.php
mod/profile.php
mod/profile_photo.php
mod/profiles.php
mod/profperm.php
mod/proxy.php
mod/pubsub.php
mod/pubsubhubbub.php
mod/qsearch.php
mod/receive.php
mod/redir.php
mod/regmod.php
mod/salmon.php
mod/search.php
mod/settings.php
mod/share.php
mod/starred.php
mod/subthread.php
mod/suggest.php
mod/tagger.php
mod/tagrm.php
mod/uexport.php
mod/videos.php
mod/viewcontacts.php
mod/viewsrc.php
mod/wall_attach.php
mod/wall_upload.php
mod/wallmessage.php
mod/xrd.php
object/Item.php
update.php
view/theme/frio/theme.php
view/theme/vier/theme.php