Changeset 3110840
- Timestamp:
- 07/02/2024 05:26:38 AM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ai24-assistant-integrator/tags/1.0.8/includes/functions.php
r3110818 r3110840 31 31 function AI24AI_get_api_key_by_identifier($identifier) { 32 32 $apiKeys = get_option('AI24AI_api_keys'); 33 error_log('Retrieved API Keys: ' . print_r($apiKeys, true)); // Debug log for API keys 34 33 35 if (is_array($apiKeys)) { 34 foreach ($details as $details) { 36 foreach ($apiKeys as $details) { 37 error_log('Checking API key: ' . print_r($details, true)); // Debug log for each key 35 38 if ($details['name'] === $identifier) { 39 error_log('API key found for identifier: ' . $identifier); // Log success 36 40 return $details['key']; 37 41 } 38 42 } 39 43 } 44 error_log('API key not found for identifier: ' . $identifier); // Log failure 40 45 return false; 41 46 }
Note: See TracChangeset
for help on using the changeset viewer.