It is currently Sun Dec 17, 2017 12:21 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue Jan 27, 2015 11:31 am 
Offline

Joined: Fri Jan 09, 2015 4:45 pm
Posts: 2
I got notices in error file if the user agent HTTP_USER_AGENT is not set.
Code:
[Tue Jan 27 06:40:19 2015] [error] [client 217.40.204.145] PHP Notice:  Undefined index: HTTP_USER_AGENT in /var/www/cms/plugins/content/admirorgallery/admirorgallery/classes/agGallery.php on line 598

File: plugins/content/admirorgallery/admirorgallery/classes/agGallery.php

I changed the following line 598:
Code:
      //$osVersion = $this->ag_get_os_($_SERVER['HTTP_USER_AGENT']);
      $osVersion = isset($_SERVER['HTTP_USER_AGENT']) ? $this->ag_get_os_($_SERVER['HTTP_USER_AGENT']) : 'Unknown - no user agent';


Thomas


Top
 Profile  
 
 Post subject: Undefined index: HTTP_USER_AGENT in [..] agGallery.php
PostPosted: Tue Jan 27, 2015 11:31 am 
Top  
PostPosted: Thu Mar 19, 2015 3:05 pm 
Offline
Developer
Developer
User avatar

Joined: Sat Aug 14, 2010 9:31 pm
Posts: 1241
Location: Novi Sad, Serbia
Thank you for reporting this issue.
It will be included in the next release. :)
Added on https://github.com/vasiljevski/admirorgallery in revision 3

_________________
Help Admiror Gallery become even better,
give us a review on JED


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

 


All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

This is the official Admiror Joomla! Community Forum. You are welcome to join the Admiror Joomla! Community. All Admiror Joomla! Extensions Users, Joomla! Developers, PHP or mySQL Developers are welcome to support & contribute to Admiror Joomla! Projects.

Joomla! is a free and open source content management system (CMS) for publishing content on the World Wide Web and intranets. With a vibrant volunteer community, user-friendly features and plenty of power, Joomla is perfect for your website!

Joomla! is written in PHP, uses object-oriented programming (OOP) techniques and software patterns, stores data in a MySQL database, and includes features such as page caching, RSS feeds, printable versions of pages, news flashes, blogs, polls, search, and support for language internationalization.

Joomla! is the property of Open Source Matters, Inc. All rights reserved. Read more about Joomla! at http://www.joomla.org/.


Protected by Anti-Spam ACP Powered by phpBB® Forum Software © phpBB Group