Menu

Warning: array_key_exists() Error

Help
2003-01-24
2003-04-29
  • Manfred Weber

    Manfred Weber - 2003-01-24

    Hi,
    I get follwogin error:
    "Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /usr/local/httpd/htdocs/gui/classes/class.XindiceDocumentCollection.php on line 46"
    when trying to edit a collection?

    How to solve that?

    greetz
    Manfred

     
    • Jan Schormann

      Jan Schormann - 2003-04-29

      In the PHP Manual, I found the documentation of array_key_exists, and it says:

      > array_key_exists
      >
      > (PHP 4 >= 4.1.0)
      ...
      > Note: The name of this function is key_exists() in PHP version 4.0.6.

      So maybe we'll both need to upgrade or do this ;-)

      perl -p -i -e 's/array_key_exists/key_exists/' *.php

       

Log in to post a comment.