OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
Wrong datatype for second argument (0 viewing) 
BookLibary Component Support
Go to bottom Favoured: 0
TOPIC: Wrong datatype for second argument
#4221
Amacuse (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Wrong datatype for second argument 4 Years, 5 Months ago Karma: 0  
Hi,

I don't know what happend.

Today when I am showing in the book details, there ist an error message in the head of the details:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /www/htdocs/..../library/administrator/co...ibrary/functions.php on line 320

But I can't find any error on that line?!


Here're the Line 319 - 321:

for($i = 0;$i<count($tempArr);$i++){
if(($tempArr[$i] == $usersgroupid OR in_array($tempArr[$i],$usersgroupid)) || $tempArr[$i]==-2){
//allow access

Has anyone an idea?

Cheers
 
Logged Logged  
  The administrator has disabled public write access.
#4223
admin (Admin)
Admin
Posts: 4856
graph
User Offline Click here to see the profile of this user
Re:Wrong datatype for second argument 4 Years, 5 Months ago Karma: 61  
hello,

$usersgroupid - must be array

Please check where you take it

Thanks,
OrdaSoft team
 
Logged Logged  
  The administrator has disabled public write access.
Go to top
What are you looking for?
Anti-spam question: How many eyes has a typical person?