0

I am not skilled in PHP at all, and I am getting this error

Notice: Array to String Conversion in :

And it directs me to line 33 (which is below):

/**
 * Generates a security token
 * The token isn't stored into the database and this avoids a database schema change
 * and SQL queries to store, retrieve, and purge (expired) tokens
 * If set to, will expire in TOKEN_EXPIRATION_TIMEFRAME seconds unless otherwise specified
 *
 * @param array $context information to base the token on
 * @param array $options (such as expires, timestamp, key)
 * @return string generated token
 */
function generate($context, $options = array(  )) {
        $context = implode( '/', (array)$context ); // <-- Line #33

                                                                  `
Phil
  • 157,677
  • 23
  • 242
  • 245

0 Answers0