You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have looked at the core code and regconize the error from function elgg_normalise_plural_options_array($options, $singulars) in /engine/lib/elgglib.php
The reason is: the function elgg_get_entities() has problem if the owner_guid is an array of array( this is caused by the elgg_normalise_plural_options_array() function.
To fix this we change the code in function elgg_normalise_plural_options_array($options, $singulars) in /engine/lib/elgglib.php
Original ticket http://trac.elgg.org/ticket/2641 on 40862722-07-10 by trac user kienvu, assigned to cash.
Elgg version: 1.7
We experienced a issue with ELGG - Files - Friends' Files - subtype menu:
These are steps to re-produce it.
Logged into ELGG
Go to Tools - Files
Go to Your Friends' Files - http://ELGGSITE/pg/file/acarer/friends/
Files show up
Click on All - http://ELGGSITE/mod/file/search.php?subtype=file&md_type=simpletype&tag=video&friends_guid=8532&page_owner=8532
NOTHING shows up
I have looked at the core code and regconize the error from function elgg_normalise_plural_options_array($options, $singulars) in /engine/lib/elgglib.php
The reason is: the function elgg_get_entities() has problem if the owner_guid is an array of array( this is caused by the elgg_normalise_plural_options_array() function.
To fix this we change the code in function elgg_normalise_plural_options_array($options, $singulars) in /engine/lib/elgglib.php
Need to change the old code from :
$options[$plural] = array($options[$singular]);
To
if(!is_array($options[$singular])) $options[$plural] = array($options[$singular]);
else $options[$plural] = $options[$singular];
The text was updated successfully, but these errors were encountered: