aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/extender.php
diff options
context:
space:
mode:
authorSteve Clay <steve@mrclay.org>2012-11-14 21:54:13 -0500
committerSteve Clay <steve@mrclay.org>2012-11-14 22:14:55 -0500
commit4f9fb7df0dabfa470e1f7045428c5e47a6ce3919 (patch)
tree8f5e64d83e05584c076ad1b431d032738f1702a9 /engine/lib/extender.php
parent3048db0f3f1ade31d6f3a2cdd3268e978a3e3cf3 (diff)
downloadelgg-4f9fb7df0dabfa470e1f7045428c5e47a6ce3919.tar.gz
elgg-4f9fb7df0dabfa470e1f7045428c5e47a6ce3919.tar.bz2
Style cleanup
Diffstat (limited to 'engine/lib/extender.php')
-rw-r--r--engine/lib/extender.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/lib/extender.php b/engine/lib/extender.php
index 636b711ea..538f601e1 100644
--- a/engine/lib/extender.php
+++ b/engine/lib/extender.php
@@ -141,9 +141,10 @@ function can_edit_extender($extender_id, $type, $user_guid = 0) {
return false;
}
- if (!is_a($extender, "ElggExtender")) {
+ if (!($extender instanceof ElggExtender)) {
return false;
}
+ /* @var ElggExtender $extender */
// If the owner is the specified user, great! They can edit.
if ($extender->getOwnerGUID() == $user->getGUID()) {